Quote:
|
Originally Posted by ipl
How to retrive Records from middle of a table
suppose i have a table Employee having column Emp_Name with 5 records as shown
Emp_Name
A
B
C
D
E
F
Tell me a query that will return second record to fourth record values
ie it then return B,C,D
Regards
|
If you would like to get the values B,C,D then you simple create a query with the following syntax:
select emp_name from employee
where emp_name between 'B' and 'D'
order by 1;
or
select emp_name from employee
where emp_name in ('B','C','D')
order by 1
hope this helps