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...

A table has 150 records. How do you retrieve 100th row to
120th row from that table ?

Answer Posted / sagar sananse

with admitCTE(AdmissionId,PatientId,RN) as
(
select AdmissionId,PatientId,Row_number() over (order by AdmissionId) as RN from tempadmit
)
select * from admitCTE where RN between 101 and 120

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between sql and oracle?

1098


what is a trigger? : Sql dba

1011


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1327


What are the different types of functions in sql?

1037


how to include character strings in sql statements? : Sql dba

1047


Can we use pl sql in mysql?

997


what are the advantages of sql ? : Sql dba

1042


Can we group by two columns in sql?

970


What are different types of keys?

1084


What is compound trigger?

1016


What is a join?

1046


Explain the the update statement in sql?

1015


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

1009


Is delete faster than truncate?

994


What are keys in sql?

980