Start learning 50% faster. Sign in now
The DELETE command in SQL is used to remove specific rows from a table based on a WHERE clause condition. Unlike DROP or TRUNCATE, which impact the entire table, DELETE operates on a more granular level, enabling selective removal of data while preserving the table structure and any other rows. For example: DELETE FROM employees WHERE department = 'Sales'; This query removes only the rows from the employees table where the department is 'Sales', leaving all other rows intact. Additionally, the DELETE command logs each deleted row, making it possible to rollback transactions if the database supports it (e.g., in databases using transaction control). This makes DELETE particularly useful for scenarios where precision and rollback capabilities are required. Explanation of Incorrect Options: A) DROP : The DROP command is used to completely remove a table or database, including its structure. It is not selective and deletes the entire object. B) TRUNCATE : While TRUNCATE removes all rows from a table, it does not allow selective deletion. Furthermore, TRUNCATE is faster but does not log individual row deletions, making rollback impossible in most cases. D) REMOVE : This is not a valid SQL command. E) UPDATE : The UPDATE command is used to modify existing data, not to delete it.
Directions: In each of the following questions, a sentence is given with three words marked as (A), (B), and (C). These words may or may not be placed...
Which of the following will be the THIRD sentence after the rearrangement?
Which of the following statements is the third statement of the paragraph?
If statement F is the last statement, which of the following is the FIRST statement after rearrangement?
such as ores, minerals and cotton(A) India tends to export primary materials (B) sophisticated products higher up in the value chain (C) whereas Chin...
In the question below, a sentence is given, divided into parts and jumbled, which when arranged will form a logical and coherent sentence. One of the p...
In each of the questions given below a sentence is given with three words in bold. Choose the option which gives the correct sequence of these words to ...
In each sentence below four words have been printed in bold which are numbered (1), (2), (3) and (4) One of these words may be misspelt or inappropriat...
Which is the SIXTH (LAST) sentence of the paragraph?
The people in the
P. King’s court could not
Q. at the funny sight
R. control their laughter