Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with TOP and UNION
Message
From
27/12/2004 11:47:40
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00972363
Message ID:
00972369
Views:
13
Yep, I was hoping to bypass the stored procedure route, but it looks as though it's the only way.

Thanks

>You can do the first select into a cursor and than add new record with Null date.
>
>>Oops, sorry. I know the problem of not being able to use the order by in the first select. Any ideas on how to return the correct results?
>>
>>John
>>
>>>You've to add 'order by begin_date desc' to the first select in whcih case it cannot be UNION.
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform