I have a table with three columns, that ist result of a Select with an inner join:
SELECT createTimestamp, paymentDate, buyDate
FROM ARC_PAYMENTS
INNER JOIN PERSON_IN_PAYMENT ON ARC_PAYMENTS.PERSON_ID=PERSON_IN_PAYAMENT.ID
WHERE PERSON_IN_PAYMENT.COMPANY_ID='1234567';
Now, I need to get the latest/youngest/highest value of the three columns of all rows. So the result should be just one Date. That might be problematic because the createTimestamp column is a timestamp, the other two columns are date.
Is there any way to do that (performance is very important) in a oracle database? To use the result of my first SELECT in another select?
Thank you