Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning the most recent of several rows
Message
De
16/01/2002 19:08:41
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00605632
Message ID:
00605811
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform