Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Table with given values

Author  Topic 

AAAV
Posting Yak Master

152 Posts

Posted - 2010-06-01 : 10:38:55
I tried
select 7500,15000,20000,30000,35000
i get all the values as columns in the result set
how do i change it to give each value in a separate row?

Kristen
Test

22859 Posts

Posted - 2010-06-01 : 10:41:09
[code]select 7500 UNION ALL
SELECT 15000 UNION ALL
SELECT 20000 UNION ALL
SELECT 30000 UNION ALL
SELECT 35000 [/code]
Go to Top of Page
   

- Advertisement -