General information
Forum:
Microsoft SQL Server
Title:
Returning Last Tranaction Date
Environment versions
SQL Server:
SQL Server 2005
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only