display records from 5 to 9 using rowid or rownum

Answer Posted / satya

select empno,ename,sal from emp
group by rownum,empno,ename,sal
having rownum between 5 and 9;

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is sql important?

577


What plvcmt and plvrb does in pl/sql?

874


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

1721


How do I add a database to sql?

575


Explain some predefined exceptions.

582






what are date and time data types? : Sql dba

534


What is sql and its types?

625


How is use pl and sql?

552


What is the difference between function and procedure in pl/sql?

536


what is foreign key? : Sql dba

585


What if we write return in procedure?

785


How do I edit a trigger in sql developer?

537


What is full join?

525


When can we use the where clause and the having clause?

576


What do you mean by stored procedures? How do we use it?

517