how will you find out the last three records in a table
with n no of records and delete them

Answer Posted / aswin

This query cost the performance :
delete from emp where empno in (select empno from (select
empno from emp order by rowid desc) where rownum <= 3)

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is data control language? : Sql dba

746


What is varchar example?

770


What is PL/SQL Records?

820


How do you select unique values in sql?

706


What is record variable?

708






What is the starting oracle error number?

757


what is row? : Sql dba

933


What is the use of sqlerrd 3?

682


What are the advantages of sql? Explain

850


Which join is like an inner join?

718


Explain what is rdbms?

782


Is a table valued function object?

759


Explain what is a view?

795


Explain the the delete statements in sql?

756


Is a foreign key always unique?

677