Oracle Procedure to join two tables with latest status

Posted by Sony on Stack Overflow See other posts from Stack Overflow or by Sony
Published on 2010-06-07T07:16:27Z Indexed on 2010/06/07 7:22 UTC
Read the original article Hit count: 292

Filed under:
|

Please help me make an oracle stored procedure ; I have two tables

tblLead:

lead_id Name 1 x 2 y 3 z

tblTransaction:

Tran_id lead_id date status

1 1 04/20/2010 call Later 2 1 05/05/2010 confirmed

I want a result like

lead_id Name status

1 x confirmed 2 y not available ! 3 z not available !

© Stack Overflow or respective owner

Related posts about Oracle

Related posts about oracle9i