Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning the most recent of several rows
Message
From
16/01/2002 19:08:41
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00605632
Message ID:
00605811
Views:
16
Well you've got a number of options. You could just make the first query a View in SQL Server and then have your 2nd query reference the view. Or if you are using it in code (I'm not sure how you are using this: Visual Basic, SQL itself, ?) you can just have the queries within recordsets (client-side cursor preferred) and then destroy the objects when you are done. I've always liked the idea of temp tables but I've never come across an occaion when I actually had to use them. I guess it really depends on what you are going to do with them, how often you are going to do it, and where/what enviorment you are doing it in.
Previous
Reply
Map
View

Click here to load this message in the networking platform