0% found this document useful (0 votes)
75 views7 pages

SQL 100 MCQ Questions

The document contains 100 multiple-choice questions (MCQs) related to SQL, covering topics such as filtering rows, primary keys, updating records, and functions that return the number of rows. Each question is followed by four answer options, with the correct answer indicated. The questions are repeated multiple times throughout the document.

Uploaded by

nishchal gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views7 pages

SQL 100 MCQ Questions

The document contains 100 multiple-choice questions (MCQs) related to SQL, covering topics such as filtering rows, primary keys, updating records, and functions that return the number of rows. Each question is followed by four answer options, with the correct answer indicated. The questions are repeated multiple times throughout the document.

Uploaded by

nishchal gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SQL - 100 MCQs with Answers

Q1: Which SQL clause is used to filter rows?


A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q2: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q3: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q4: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q5: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q6: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q7: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q8: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q9: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q10: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q11: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q12: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q13: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q14: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q15: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q16: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q17: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q18: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q19: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q20: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q21: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q22: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q23: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q24: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q25: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q26: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q27: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q28: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q29: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q30: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q31: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q32: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q33: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q34: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q35: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q36: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q37: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q38: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q39: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q40: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q41: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q42: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q43: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q44: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q45: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C
Q46: Which SQL clause is used to filter rows?
A) SELECT
B) WHERE
C) FROM
D) HAVING
Answer: B
Q47: What is a primary key?
A) Duplicate column
B) Column with NULL
C) Unique identifier
D) None
Answer: C
Q48: Which SQL command is used to update records?
A) UPDATE
B) MODIFY
C) CHANGE
D) SET
Answer: A
Q49: Which function returns the number of rows?
A) SUM()
B) COUNT()
C) AVG()
D) MAX()
Answer: B
Q50: What is the result of: SELECT * FROM table WHERE 1=0?
A) All rows
B) Error
C) No rows
D) First row
Answer: C

You might also like