Oracle is very fast and powerful but requires significant expertise to maintain. MS SQL is easier to install and administer but is not not as "scalable" as Oracle. Sql provide more functionality,provide separate query analyzer and enterprise manager,oracle data base more secure
In sql table define some primary key as emp_code
select * from tablename where emp_code between range1 and range2