how to get the third quarter of employee details from emp?

Answer Posted / rupesh kumar

select * from emp where rownum<=(select round((count(*)/4)
*3) from emp)
minus
select * from emp where rownum<=(select round((count(*)/4)
*2) from emp)

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a query and a report?

514


what is view? : Sql dba

556


How to find 3rd highest salary of an employee from the employee table in sql?

564


what is a join? : Sql dba

561


What are aggregate and scalar functions?

521






How do you write a complex sql query?

583


What is indexing oracle sql?

559


Is microsoft sql free?

596


Explain commit, rollback and savepoint.

601


Can we create a trigger on view?

485


How to write html code in pl sql?

577


What is a ddl command?

532


what is the use of friend function? : Sql dba

538


what is a control file ? : Sql dba

574


How do I copy a table in sql?

515