Max two values
728995Oct 30 2009 — edited Oct 30 2009Hi All,
We have a requirement to get max two values.
We have one primary key Let us assume Quarter_sk we have to get Max two values for particular condition.
This primary Key doesnt have sequence.
select Quarter_sk from myschema.myTable where max(Quarter_sk) and max but one(Quarter_sk).
Could anyone please help to me.
Thanks and Regards
Swetha.