Tag: databases

Questions Related to databases

  1. None

  2. Record

  3. Record Structure

  4. Record Occurence


Correct Option: B,D
  1. Data Item

  2. Record Occurence

  3. Record

  4. Record Type


Correct Option: D

"Pages" contain

  1. Areas

  2. Record Occurence

  3. Record Type

  4. Data Item


Correct Option: B
  1. A view can be created as read only.

  2. A view can be created as a join on two or more tables. AND Insert and delete operations cannot be performed on views using functions

  3. A view cannot have an ORDER BY clause in the SELECT statement.

  4. A view cannot be created with a GROUP BY clause in the SELECT statement.


Correct Option: A,B,C,D

In which case would you use a FULL OUTER JOIN?

  1. Both tables have NULL values.

  2. You want all unmatched data from one table.

  3. You want all matched data from both tables.

  4. You want all unmatched data from both tables.

  5. One of the tables has more data than the other.


Correct Option: D

Difference between Truncate and Delete

  1. TRUNCATE is a DDL command whereas DELETE is a DML command

  2. TRUNCATE is much faster than DELETE

  3. In case of TRUNCATE ,Trigger doesn't get fired.But in DML commands like DELETE .Trigger get fired

  4. All of the above


Correct Option: A

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) TRUNCATE is a DDL command whereas DELETE is a DML command - This option is correct. TRUNCATE is a Data Definition Language (DDL) command used to delete all the rows from a table, while DELETE is a Data Manipulation Language (DML) command used to delete specific rows from a table.

Option B) TRUNCATE is much faster than DELETE - This option is partially correct. TRUNCATE is generally faster than DELETE because it does not generate any transaction logs and does not need to record individual row deletions. However, the exact performance difference may vary depending on the specific database system and the size of the table.

Option C) In case of TRUNCATE, Trigger doesn't get fired. But in DML commands like DELETE, Trigger gets fired - This option is correct. When you use TRUNCATE, triggers associated with the table are not fired. However, when you use DELETE, triggers associated with the table may get fired.

Option D) All of the above - This option is incorrect. The correct answer is A, as explained above.

The correct answer is A. TRUNCATE is a DDL command whereas DELETE is a DML command.

  1. TRUNCATE is a DDL command whereas DELETE is a DML command

  2. TRUNCATE is much faster than DELETE

  3. In case of TRUNCATE ,Trigger doesn't get fired.But in DML commands like DELETE .Trigger get fired

  4. All of the above


Correct Option: A
  1. USER_TAB_PRIVS_MADE

  2. USER_TAB_PRIVS_RECD

  3. USER_COL_PRIVS_MADE

  4. USER_COL_PRIVS_RECD


Correct Option: D