SQL Queries
JKSSB Sub-Inspector (Telecommunication) · Database Management Systems · 21 practice questions with answers and explanations: 13 Easy, 8 Medium, 0 Hard.
Sample questions
Sample Easy question 1
Which SQL clause sorts the rows of a result?
- SORT BY
- GROUP BY
- ORDER BY
- ARRANGE
Show answer
Answer: C. ORDER BY sorts the output, ascending by default.
Sample Easy question 2
Which SQL keyword removes duplicate rows from a SELECT result?
- DISTINCT
- NODUP
- UNIQUE ROWS
- SINGLE
Show answer
Answer: A. SELECT DISTINCT returns each different row once.
Sample Easy question 3
Which function returns the number of rows selected by a query?
- TOTAL(*)
- SUM(*)
- LENGTH(*)
- COUNT(*)
Show answer
Answer: D. COUNT(*) counts rows, including those with NULL values.
Sample Medium question 4
Which clause filters groups after GROUP BY has formed them?
- HAVING
- FILTER
- WHERE
- LIMIT
Show answer
Answer: A. WHERE filters rows before grouping; HAVING filters groups afterwards, so it can use aggregates.
Sample Medium question 5
Which join returns only the rows that have matching values in both tables?
- LEFT JOIN
- CROSS JOIN
- INNER JOIN
- FULL OUTER JOIN
Show answer
Answer: C. INNER JOIN keeps matched rows only.
Sample Medium question 6
What does a LEFT JOIN return?
- All rows of the left table and the matching rows of the right table
- The rows that match in both tables alone
- All rows of the right table alone
- The Cartesian product of both tables
Show answer
Answer: A. Unmatched left rows appear with NULLs in the right table's columns.
More Database Management Systems topics for JKSSB Sub-Inspector (Telecommunication)
- Database Design & Transactions
- ER Model & Relational Algebra
- Normalization & Keys
- Transactions & Concurrency