Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to retrive only second row from table?

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


Please Help Members By Posting Answers For Below Questions

What happens when a trigger is associated to a view?

906


What are the types of join and explain each?

1031


How do I create a memory optimized filegroup?

959


How do I order by ascending in sql?

1011


How do you delete a table?

1071


what are the t string functions available in tsql? : Transact sql

1002


What are aggregate and scalar functions?

1017


What is composite data type in pl sql?

1100


Can we use pl sql in mysql?

1010


What is the difference between function and procedure in pl/sql?

1081


What is difference between pls_integer and integer?

950


What is query syntax?

961


How many rows can sqlite handle?

1110


What is nvarchar in sql?

924


Can we use commit inside a trigger?

1085