G
Guest
Hi! I am trying to get the last date on the table SIR which is linked to the
table SIR_D.
Table SIR
-----------
SIR_ID (primary key)
ENTERED_DATE
Table SIR_D
---------------
SIR_ID (primary key)
STK_NO (primary key)
LOC (primary key)
REQUESTOR
How do I obtain the last ENTERED DATE for each STK_NO & LOC as the following
result : (N.B. a STK_NO could be found in many LOC) The goal is to get the
very last information for each STK_NO & LOC.
SIR_ID STK_NO LOC ENTERED_DATE
003 123 MAG 23-MAY-2006
003 123 EXT 23-MAY-2006
001 124 MAG 01-MAR-2005
006 672 MAG 06-JUN-2006
Thank you for your help,
gmore
table SIR_D.
Table SIR
-----------
SIR_ID (primary key)
ENTERED_DATE
Table SIR_D
---------------
SIR_ID (primary key)
STK_NO (primary key)
LOC (primary key)
REQUESTOR
How do I obtain the last ENTERED DATE for each STK_NO & LOC as the following
result : (N.B. a STK_NO could be found in many LOC) The goal is to get the
very last information for each STK_NO & LOC.
SIR_ID STK_NO LOC ENTERED_DATE
003 123 MAG 23-MAY-2006
003 123 EXT 23-MAY-2006
001 124 MAG 01-MAR-2005
006 672 MAG 06-JUN-2006
Thank you for your help,
gmore