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

How many types of keys are there in sql?

758


Explain locks? : Transact sql

740


How to connect a sql*plus session to an oracle server?

819


What are the two characteristics of a primary key?

674


Why do we use joins?

779






What are the qualities of 2nf?

749


How do you bind variables in pl sql?

761


What is the usage of the distinct keyword?

896


What is the location of pre_defined_functions.

844


What is pls_integer in pl sql?

755


Define join and name different types of joins?

717


Why do we use partitions in sql?

724


What are the different dml commands in sql?

764


What is sqlcontext?

716


What does select count (*) mean in sql?

742