SQL MCQ
SQL MCQ
QUESTION ANSWER
1 The purpose of WHERE clause in a SQL
statement is to:
A. Create a table
B. Filter rows based on a specific condition B.
C. Specify the columns to be displayed Filter rows based on a specific
D. Sort the result based on a column condition
Table 1:
ATHLETE, which stores AthleteID, Name,
Country. The table displays basic information
of the athletes
Table 2: I. SELECT SPORT,SUM(Medals) FROM MEDALS
MEDALS, which stores AthleteID, Sport, and GROUP BY SPORT;