Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Last Tranaction Date
Message
From
03/12/2013 16:26:04
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Returning Last Tranaction Date
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01589211
Message ID:
01589211
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform