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
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
Is time a data type in sql?
What is multiple partition?
What are the properties of a transaction?
explain primary keys and auto increment fields in mysql : sql dba
How do I save a sql query?
What is the most restrictive isolation level? : Transact sql
What is acid property in a database?
Explain the types of joins in sql?
how to fetch common records from two tables? : Sql dba
How can you save or place your msg in a table?
how to analyze tables with 'mysqlcheck'? : Sql dba
What operating systems are supported by oracle sql developer?
What is #table in sql?
what is an alias command? : Sql dba