Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Last Tranaction Date
Message
De
03/12/2013 17:02:33
 
 
À
03/12/2013 16:26:04
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01589211
Message ID:
01589213
Vues:
46
>I have a customer that would like for me to provide them with the last transaction date for each job. The problem I'm having is the transactions are stored in three different tables based on transaction type. All of these tables include the same field dRep a date field that stores the date the transaction was recorded. How can I create a Scalar Valued Function that will simply return the most recent transaction date for a job based on values in these three tables. I assume I need to have one SQL statement for each table but how do I return only one date from the three results?
>
>
>TIA
>Jeff


do you simply need the date value itself, or do you also need to know which of the three tables (the table name itself) had the max value?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform