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
Is null operator in sql?
How bulk collect improves performance?
What is the advantage of nosql?
What is posting?
What is an exception in pl/sql?
How do you add a column to a table?
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
Define tables and fields in a database
How does rowid help in running a query faster?
What are database links used for?
How do I create a sql database?
What do you mean by dbms? What are its different types?
What are the different tcl commands in sql?
What are the ways on commenting in a pl/sql code?
hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews