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
describe transaction-safe table types in mysql : sql dba
How many aggregate functions are available there in sql?
How can get second highest salary in sql?
What is optimistic concurrency control? : Transact sql
What are the advantages of pl sql over sql?
Why do we go for stored procedures?
Is left join and outer join same?
Mention what pl/sql package consists of?
what is the command used to fetch first 5 characters of the string? : Sql dba
what are rollup and cube in t-sql? : Transact sql
Is big data nosql?
What is multiple columns?
What is the difference between having clause and where clause?
What are % type and % rowtype?
What is primary key sql?