|
> How can I construct an sql statement to select the highest value along
> with additional information?
> I have tried select duns, max(tmstmp) from cdata but this seems to fuss
> about the MAX function, any help will be appreciated because I believe I
> am going nuts here!
> CDATA table
> DUNS TMSTMP
> 003253390 2000-01-27-07.51.03.971320
> 003299534 2000-01-24-08.32.25.182200
> 003301959 2000-01-25-10.16.11.563368
......................................
I'm not sure I understand the question, but I propose:
SELECT DUNS, TMSTMP FROM CDATA WHERE TMSTMP = (SELECT MAX(TMSTMP) FROM CDATA)
Bonne réception/Best regards
Richard THEIS
Education AS/400, Sce 8072, MTG
theis_richard@fr.ibm.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.