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:RE: Retrieval Query

Re:RE: Retrieval Query

From: Wayne S Bellefeuille <wbellefe_at_allina.com>
Date: Thu, 13 Jul 2000 07:56:57 -0500
Message-Id: <10557.111939@fatcity.com>


This would only work if the MAX(PO_DATE) for all PO_NUMs equals the MAX(PO_DATE) for the PO_NUMs found for that PO_MATERIAL, (which is probably unlikely).

Wayne

____________________Reply Separator____________________
Subject: RE: Retrieval Query
Author: <ORACLE-L_at_fatcity.com>
Date: 7/11/00 12:37 PM

I propose:

select d.PO_PRICE

    from detail d, header h
where d.PO_MATERIAL = '&&Material_Number'

    and d.PO_NUM = h.PO_NUM
    and h.PO_DATE =

        (select max(h2.PO_DATE) from header h2) /

Akshay Jain



Newcourt-CIT
Tel. (416) 507-5385
mailto:Akshay.Jain_at_cit.com <mailto:Akshay.Jain_at_cit.com>

-----Original Message-----
<mailto:drichard_at_mtlindia.com> ]
Sent: Tuesday, July 11, 2000 7:54 AM
To: Multiple recipients of list ORACLE-L

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). -- Author: Jain, Akshay INET: Akshay.Jain_at_cit.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
Received on Thu Jul 13 2000 - 07:56:57 CDT

Original text of this message

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