SQL Language (MOSC)

MOSC Banner

One row results

edited Feb 6, 2013 6:33AM in SQL Language (MOSC) 8 commentsAnswered
Hello all,
This is probably very simple but I cannot get it to work today.  I would appreciate someone setting me straight.

I would like to return 1 row where the document date is the greatest date.  I have a link that shows the result of the included query.  I would like help in figuring out how return 1 row where document_date = 09-Jun-12 and Tracking_number = 333444.

example

select oe.order_number, y.document_date, y.tracking_number
from oe_order_headers_all oe,

  (select max(x.document_date) document_date , x.header_id, x.tracking_number
    from  xxprk_doc_tracking_details x

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center