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 happens if null values are involved in expressions? : Sql dba

1029


What is normalisation in sql?

1041


Which is better stored procedure or query?

949


What are the types of sql commands?

1075


What is column?

975


What are stuff and replace function?

1065


how can we destroy the session, how can we unset the variable of a session? : Sql dba

981


What is denormalization in a database?

1030


What is difference between sql and oracle?

1099


What is procedure explain with example?

939


Define join and name different types of joins?

988


what are dynamic queries in t-sql? : Transact sql

1004


What is the difference between a query and a report?

950


How does rowid help in running a query faster?

1402


Describe different types of general function used in sql?

1016