Click here to Skip to main content
15,906,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i have 12 select statement which assosiated with each other with union,
i want to collect them in one select statement ,
how i can do that,please?
Posted
Updated 3-Apr-11 3:05am
v2
Comments
Wendelius 3-Apr-11 7:21am    
If you already have used union then you should have a single statement. Or are you trying to get rid of union's? Please add an example and explanation to the post, what you're trying to accomplish.
Keith Barrow 3-Apr-11 7:30am    
Can you pos6t your SQL? As Mika said, by using the union you have *already* "collected" the SQL statements. If you are having a problem, please state what it is. Note that for a union to work you must have the same number of columns in the select and they must be of the same/compatible types.

1 solution

multiple select can always be reconducted to single select (theorem)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900