Subject | Getting the Bigger Value of two fields in one field |
---|---|
Author | Yossi Zaig |
Post date | 2005-05-19T20:53:01Z |
Hi.
I have this Query:
SELECT
MAX("Treatments"."WorkStartDate") "WorkStartDate",
MAX("TreatmentDetails"."TreatmentDetailDate") "TreatmentDetailDate"
FROM
"Treatments" LEFT OUTER JOIN "TreatmentDetails"
ON "Treatments"."TreatmentID" = "TreatmentDetails"."TreatmentID"
Is there away to get the bigger Date of those two fields in one fields and not I two as I did ?
Best Regards.
Yossi
[Non-text portions of this message have been removed]
I have this Query:
SELECT
MAX("Treatments"."WorkStartDate") "WorkStartDate",
MAX("TreatmentDetails"."TreatmentDetailDate") "TreatmentDetailDate"
FROM
"Treatments" LEFT OUTER JOIN "TreatmentDetails"
ON "Treatments"."TreatmentID" = "TreatmentDetails"."TreatmentID"
Is there away to get the bigger Date of those two fields in one fields and not I two as I did ?
Best Regards.
Yossi
[Non-text portions of this message have been removed]