Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query question
Message
 
 
À
12/11/2009 13:24:28
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01434430
Message ID:
01434432
Vues:
54
>I have a table with sales order number (sono), Transaction Code (tcode) and transaction date (tdate) fields.
>There are multiple records for one Sales Order.
>I want to write a query that returns one record with the sono, tcode and tdate for the latest date for that sales order and I have a complete blank
>HELP!!

Please see http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/MSSQLServer/including-an-aggregated-column-s-related for 6 different solutions of this problem.

You may also want to see http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/including-an-aggregated-column-s-related-2 that shows test cases for the problem.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform