|
Walden, Sorry, but got error "Token MAX was not valid. Valid tokens: + ) -." in the subselect for "max(dmatdt)". Upon further investigation, we do not need to know the transaction type for the last used date. I did this just for verication purposes. However, we do know the transaction types that should be ignored. Thanks, Loyd -- Loyd Goodbar Programmer/analyst BorgWarner Incorporated ETS/Water Valley 662-473-5713 lgoodbar@xxxxxxxxxxxxxx -----Original Message----- From: Walden H. Leverich III [mailto:WaldenL@xxxxxxxxxxxxxxx] Sent: Thursday, June 12, 2003 3:15 PM To: 'Midrange Systems Technical Discussion' Subject: RE: SQL vs native I/O round 19 (long) Loyd, Do you need to know the transaction type? Your initial description of the problem doesn't state so, but your query seems to imply it. If not try this query: Select czekcd, czfktx, (select max(dmatdt) from dbdmrep where dmekcd = czekcd and dmazcd = czazcd and dmcdcd not in ('ADJ',';PHY',';STD') ) from dbczrep where czazcd = 'WV' order by czekcd -Walden
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.