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
Is primary key a clustered index?
What is a heap in sql?
What is sql comments?
how can we destroy the cookie? : Sql dba
Is sql procedural language?
What is %type in sql?
What is pls_integer in pl sql?
What is the difference between a query and a report?
What is sqlcommand?
how to fetch alternate records from a table? : Sql dba
Whis is not false in primary key?
is it possible to pass an object or table to a procedure as an argument?
What is posting?
what does myisamchk do? : Sql dba
What is raw datatype in sql?