OA EXAM WITH CORRECT ACTUAL
QUESTIONS AND CORRECTLY WELL
DEFINED ANSWERS LATEST ALREADY
GRADED A+
Question 1
Which SQL clause is used to filter records after aggregation?
A. WHERE
B. GROUP BY
C. HAVING
D. ORDER BY
Explanation:
The HAVING clause is used to filter results after aggregation
functions (like COUNT, SUM) are applied. WHERE filters
rows before aggregation.
,Question 2
Which of the following is a primary key characteristic?
A. Can contain duplicate values
B. Can be NULL
C. Uniquely identifies each row
D. Is optional in a table
Explanation:
A primary key must uniquely identify each record and
cannot contain NULL or duplicate values.
Question 3
Which SQL function returns the number of rows?
A. SUM()
B. COUNT()
C. AVG()
,D. TOTAL()
Explanation:
COUNT() returns the number of rows that match a specified
condition.
Question 4
Which data type is best for storing text?
A. INT
B. DATE
C. VARCHAR
D. FLOAT
Explanation:
VARCHAR stores variable-length strings, making it ideal for
text data.
Question 5
, What does a JOIN do in SQL?
A. Deletes rows
B. Combines data from multiple tables
C. Sorts data
D. Filters columns
Explanation:
JOIN merges rows from two or more tables based on a
related column.
Question 6
Which JOIN returns all records from the left table?
A. INNER JOIN
B. RIGHT JOIN
C. LEFT JOIN
D. FULL JOIN
Explanation: