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

Click here to load this message in the networking platform