Hello,
I have a table that has several records.
Each record is made up of 4 fields.
field1 : samplename
field2 : result
field3 : entrydate (type date format dd/mm/yyyy)
field4 : entrytime (type varchar2 format 00:00)
I want to write a query to get me one record
having the four fields however I want the record
with the maximum date up to midinght last night
and the maximum time of that retrieved maximum date.
Here is an example :
Sample1 2000 10/10/2003 00:00
Sample2 2000 11/10/2003 00:00
Sample3 2000 11/10/2003 10:00
Sample4 1020 30/03/2004 01:00
Assume today is the 30th of March.
The query should return the third record.
Please take note I need it for Oracle 7.1.3 I think
row_numer() and partition do not work on version 7.1.3.
Thanks.
I have a table that has several records.
Each record is made up of 4 fields.
field1 : samplename
field2 : result
field3 : entrydate (type date format dd/mm/yyyy)
field4 : entrytime (type varchar2 format 00:00)
I want to write a query to get me one record
having the four fields however I want the record
with the maximum date up to midinght last night
and the maximum time of that retrieved maximum date.
Here is an example :
Sample1 2000 10/10/2003 00:00
Sample2 2000 11/10/2003 00:00
Sample3 2000 11/10/2003 10:00
Sample4 1020 30/03/2004 01:00
Assume today is the 30th of March.
The query should return the third record.
Please take note I need it for Oracle 7.1.3 I think
row_numer() and partition do not work on version 7.1.3.
Thanks.