Sep 23, 2002 #1 Luk1 Programmer Apr 14, 2003 2 BG I'm trying to figure a way to combine these 3 queries into a single one. select top 48 * from table1 where column1 = 1 select top 48 * from table1 where column1 = 2 select top 48 * from table1 where column1 = 3 Anybody know of a way that would make it possible?
I'm trying to figure a way to combine these 3 queries into a single one. select top 48 * from table1 where column1 = 1 select top 48 * from table1 where column1 = 2 select top 48 * from table1 where column1 = 3 Anybody know of a way that would make it possible?
Sep 23, 2002 #2 stsuing Programmer Aug 22, 2001 596 US The UNION operator can be used between queries to combine their results into a single result set. Upvote 0 Downvote
Sep 23, 2002 #3 MeanGreen IS-IT--Management Sep 12, 2002 672 US To elaborate what stsuing has said: select top 48 * from table1 where column1 = 1 UNION select top 48 * from table1 where column1 = 2 UNION select top 48 * from table1 where column1 = 3 Good Luck! Upvote 0 Downvote
To elaborate what stsuing has said: select top 48 * from table1 where column1 = 1 UNION select top 48 * from table1 where column1 = 2 UNION select top 48 * from table1 where column1 = 3 Good Luck!