Jump to content

Retrieving Top Most Row In A Table


KeenEyeLearner

Recommended Posts

Hi If i have a table [ named : TAB1 with columns C1,C2,C3 ] and i want to see the value of the first row only, what would be the query.I know that this works..--> select C1,C2,C3 from (select C1,C2,C3,rownum rn from TAB1) where rn<=1;But this is too long. I tried this, but it did not work. --> select top 1 from TAB1;Any help please......Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...