Let?s say you have 100,000 records and you want to delete
95,000 at a time and keep only 5 thousand. But in local
memory you don?t have enough space for 95,000 records. What
do you do in this case? How do you delete without any
problem with time and performance?

Answer Posted / pankaj gupta

First create a table using select statement with 5000 records u want to keep.. put it in memory.. then drop/truncate (not delete, that is the basic problem) the entire table.. and then put this 5000 record table in place

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist some commands of dcl?

707


How big is a big database?

637


Why its better to use files than a DBMS when there are multiple users to access the data

937


Define truncate and delete commands?

696


Where is data stored in database?

638


What are records and fields in a database?

638


What is a deadlock and mention how it can be resolved?

611


What is sorting in dbms?

715


What do you understand by query optimization?

713


What is service based database?

659


what do u mean by implementation?

1813


Explain the Logical Schema of Database

748


When does checkpoint occur?

659


What is database in simple language?

677


Who invented schema theory?

637