Answer Posted / nilesh
hi all,
This will also work fine, try it
select top 1 * from (select top 2 * from table_name)as set
order by set.col_name desc
here table_name is the name of the table from which
you want to retrive the record.
And col_name is the column name by which you are sorting
the records
If it found wrong plz correct it....
and show it on this site
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
How do you declare a variable in pl sql?
Explain table and field in sql?
What is the use of pl/sql table?
What is not null in sql?
What are actual parameters and formal parameters?
define sql update statement ? : Sql dba
Is progress software supports to ( pl/sql )?
What is data profiling in sql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
What is the purpose of cursors in pl/sql?
What does pl sql developer do?
What does select top 1 do in sql?
How do I partition in sql?
What is pragma in pl sql?
explain what is mysql? : Sql dba