how will you find out the last three records in a table
with n no of records and delete them
Answer Posted / sudipta santra
delete from
(select * from tab1
minus
select * from tab1 where rownum<n-2 order by rowid)
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Are sql connections encrypted?
Is foreign key mandatory?
What will you get by the cursor attribute sql%found?
Does sql profiler affect performance?
What will you get by the cursor attribute sql%rowcount?
does sql support programming? : Sql dba
What are some emotional triggers?
What is an oracle stored procedure?
how to calculate expressions with sql statements? : Sql dba
Explain some predefined exceptions.
How do you optimize a stored procedure in sql?
What is trigger and how to use it in sql?
What is number function in sql?
How do I send sql query results to excel?
What has stored procedures in sql?