DBMS-Introduction to Database Design Questions and Answers
Practice ModeShowing 10 of 50 questions
Q31
What is the purpose of GROUP BY clause?
Answer: Option A
Explanation: GROUP BY groups rows that have same values into summary rows, typically used with aggregate functions.
Q32
Which data type stores date and time?
Answer: Option A
Explanation: DATETIME data type stores both date and time information in databases.
Q33
What is a candidate key?
Answer: Option A
Explanation: A candidate key is a column or set of columns that can uniquely identify a record and could be chosen as primary key.
Q34
Which SQL command removes a table?
Answer: Option A
Explanation: DROP TABLE command permanently deletes a table and all its data from the database.
Q35
What is data warehousing?
Answer: Option A
Explanation: Data warehousing involves collecting and managing data from various sources for business intelligence and reporting.
Q36
Which join returns all records from both tables?
Answer: Option A
Explanation: FULL OUTER JOIN returns all records when there is a match in either left or right table.
Q37
What is database cursor?
Answer: Option A
Explanation: A cursor is a database object used to retrieve, manipulate, and navigate through result sets row by row.
Q38
Which constraint ensures unique values?
Answer: Option A
Explanation: UNIQUE constraint ensures all values in a column are different from each other.
Q39
What is deadlock in databases?
Answer: Option A
Explanation: Deadlock occurs when two or more transactions are waiting for each other to release locks, causing permanent blocking.
Q40
Which SQL command adds new records?
Answer: Option A
Explanation: INSERT command is used to add new records to a database table.