| Qno | Answer (Option with the text) |
|---|---|
| 1 | b) SELECT |
| 2 | b) FROM |
| 3 | a) SELECT Age FROM Employees; |
| 4 | a) SELECT * FROM Customers WHERE Country = ‘USA’; |
| 5 | b) WHERE |
| 6 | a) SELECT * FROM Customers WHERE City = ‘New York’; |
| 7 | c) ORDER BY |
| 8 | a) SELECT * FROM Products ORDER BY Price DESC; |
| 9 | a) All customers who are older than 30 and live in Los Angeles |
| 10 | b) ORDER BY |
| 11 | b) DISTINCT |
| 12 | b) Retrieves all unique countries from the “Customers” table |
| 13 | b) GROUP BY |
| 14 | b) Filters records after the grouping of rows |
| 15 | a) SELECT Country, COUNT(CustomerID) FROM Customers GROUP BY Country; |
| 16 | a) AS |
| 17 | a) The column will be renamed as ‘Employee Name’ in the result set |
| 18 | a) SELECT Age AS ‘Employee Age’ FROM Employees; |
| 19 | a) SELECT COUNT(*) AS TotalEmployees FROM Employees; |
| 20 | a) AS |
| 21 | b) SUM |
| 22 | b) The average salary of all employees |
| 23 | a) COUNT |
| 24 | a) MAX |
| 25 | a) MIN |
| 26 | b) SELECT SUM(SalesAmount) AS TotalSales FROM Orders; |
| 27 | b) Count the number of customers from the USA |
| 28 | a) SELECT AVG(Age) FROM Employees; |
| 29 | a) COUNT(DISTINCT ProductID) |
| 30 | a) SELECT AVG(Salary) FROM Employees WHERE Department = ‘HR’; |