What is the purpose of the SQL 'JOIN' clause? MCQ with Answer and Explanation

What is the purpose of the SQL 'JOIN' clause?
A. To create a new table
B. To combine columns from multiple tables into a single table
C. To delete records from a table
D. To combine rows from two or more tables based on a related column
Answer: Option D
Solution (By JKExamLibrary)
JOIN is used to combine rows from different tables based on a common column, allowing querying across related tables.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which SQL statement is used to delete all rows from a table without logging individual row deletions?
A. DROP TABLE table_name;
B. TRUNCATE TABLE table_name;
C. DELETE FROM table_name;
D. REMOVE FROM table_name;

Correct Answer: Option B


Explanation:
TRUNCATE TABLE removes all rows and is a DDL operation with minimal logging, often faster than DELETE without WHERE.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
What is metadata?
A. Data about data
B. User data
C. Temporary data
D. Backup data

Correct Answer: Option A


Explanation:
Metadata is data that provides information about other data, such as structure and constraints.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
Which language is used to define the structure of a database, such as creating tables and constraints?
A. DCL
B. TCL
C. DML
D. DDL

Correct Answer: Option D


Explanation:
Data Definition Language (DDL) is used to define and modify the database schema, including CREATE, ALTER, and DROP statements.

This question belongs to: Computer Database Management System (DBMS)