Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MAX VALUE FROM SINGLE SELECT

user8743422Jul 14 2011 — edited Jul 14 2011
Hi All,

create table T1
(e_sal number,
s_dt date);

I want e_sal of max date from the table.

I have written like this < SELECT E_SAL FROM T1 WHERE S_DT = (SELECT MAX(S_DT) FROM T1);

Here I have to write 2 select statement from same table. But how can I get same result through single select statement?

PLS. HELP ME.

REGARDS,

JIMUT
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2011
Added on Jul 14 2011
6 comments
129 views