>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?