Topic Subtopic Count Basic Knowledge Required Example Questions Question Numbers
Write an SQL query to display the
transaction id, transaction
WHERE clause, comparison
amount, and transaction type of
operators (>, <, =, <>), logical
Filtering Data WHERE Clause 5 all the transactions whose 1, 6, 14, 22, 26
operators (AND, OR), LIKE
transaction type is "Debit" and
operator, IN operator
transaction amount is greater
than 10000 but less than 5000.
The account type id and average
GROUP BY, HAVING clause, account balance for each account
HAVING Clause 1 aggregate functions (AVG, type where the average account 12
COUNT, SUM) balance is greater than or equal to
50000.
The first name, contact number,
JOIN types (INNER JOIN), joining
and balance of all the customers
Joining Tables JOIN Operations 10 multiple tables on a common 2, 3, 5, 8, 9, 10, 11, 13, 16, 19
whose account type starts with
column, table aliases
"Sa".
Write an SQL query to find the
LIKE operator with wildcards (%, train ID and name of all trains that
String Manipulation & Pattern
String Functions and LIKE 4 _), CONCAT function, REGEXP or have a name starting with the 7, 15, 25, 27
Matching
LIKE for numeric check alphabet M and that go to the
station with name PUNE.
The names of employees who
EXTRACT function, date
have more than 5 years of
Date and Time Date Functions & Comparisons 3 comparison operators (>), DATE 4, 18, 20
experience and joined after
literals
January 1, 2001.
Write an SQL query to display the
total number of passengers and
COUNT(), SUM(), GROUP BY
Aggregation Aggregate Functions 2 total number of baggages for a 20, 29
clause
flight arriving in Paris on February
11, 2024.
The product id and product name
SELECT statement, column
Data Retrieval Simple SELECT 2 of the products whose status are 23, 24
aliases (AS)
in the transit hub.