Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Retrieval Query

RE: Retrieval Query

From: Sandeep Dubey <sandeep.dubey_at_induscorp.com>
Date: Tue, 11 Jul 2000 12:18:00 -0400
Message-Id: <10555.111679@fatcity.com>


Richard,

Try this:

select po_price from header_table a, detail_table b where a.po_num=b.po_num
and a.po_date=(select max(po_date) from header_table);

Sandeep Dubey

-----Original Message-----
From: drichard_at_mtlindia.com [mailto:drichard_at_mtlindia.com] Sent: Tuesday, July 11, 2000 7:54 AM
To: Multiple recipients of list ORACLE-L Subject: Retrieval Query

Hi Experts

I have the header table

PO_NUM, PO_DATE and the detail table

PO_NUM, PO_MATERIAL, PO_PRICE. I want to take the unit price of a material which is bought recently
(latest purchase order date) ?

Thanks

Richard

-- 
Author: 
  INET: drichard_at_mtlindia.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Jul 11 2000 - 11:18:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US