davy_g
Well-known member
Hi,
I'm writing a program in which I select data from a table in SQL Server 2005, but where my SQL-statement becomes long.
Therefore, for a good overview, I want to split my SELECT-statement over more rows.
How can I split this into more rows?
sql = "SELECT bla bla .... FROM ... WHERE .... IN (SELECT ... FROM .... WHERE .... AND status = 10) bla bla"
When I set this in 1 row it becomes hard to read because I have to scroll all the time.
Is there a way to set this statement into more rows?
e.g.
SELECT ....
FROM ....
WHERE .....
....
I'm writing a program in which I select data from a table in SQL Server 2005, but where my SQL-statement becomes long.
Therefore, for a good overview, I want to split my SELECT-statement over more rows.
How can I split this into more rows?
sql = "SELECT bla bla .... FROM ... WHERE .... IN (SELECT ... FROM .... WHERE .... AND status = 10) bla bla"
When I set this in 1 row it becomes hard to read because I have to scroll all the time.
Is there a way to set this statement into more rows?
e.g.
SELECT ....
FROM ....
WHERE .....
....