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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 sql without from

Author  Topic 

matty1stop
Starting Member

37 Posts

Posted - 2005-05-19 : 15:45:29
Anybody know a quick way to have the following statement return two records with one field instead of one record with two fields?

select getdate(), getdate()+1

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-05-19 : 15:55:54
SELECT GETDATE()
UNION ALL
SELECT GETDATE() + 1

Tara
Go to Top of Page

matty1stop
Starting Member

37 Posts

Posted - 2005-05-19 : 16:10:33
very nice. thank you
Go to Top of Page
   

- Advertisement -