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 / kishore.p

select top 1 * from tblemp b where b.empsal not in(select
top n-1 empsal from tblemp e)

note:- here the n will be the number of only row you would
like to display.

here in the above case n=2 i.e., n-1=1

so this will be the querry:

select top 1 * from tblemp b where b.empsal not in(select
top 1 empsal from tblemp e)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a relationship and what are they?

1146


Can we use having without group by in sql?

982


What is varchar used for?

1074


Does sql between include endpoints?

1001


How would you reference column values before and after you have inserted and deleted triggers?

1063


Explain architecture of sql server notification services?

1054


What is pl sql in oracle?

1039


How many parts of a pl sql block are optional?

1128


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

948


What is sequence in sql?

998


What are the features of pl sql?

1064


What is the difference between cross join and natural join?

1016


what is the command line end user interface - mysql? : Sql dba

981


What is sql integrity?

1148


Explain select statements in sql?

1056