Q1:
2025: 16 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
What is the output of the following statement?
SELECT ROUND(2928.678,2);
2025: 16 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
What is the output of the following statement?
SELECT ROUND(2928.678,2);
2025: 16 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
In SQL, which clause is used to specify conditions on the rows with GROUP BY clause?
2025: 16 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
Consider the following two statements (A) and (B).
(A). MONTHNAME("2025-11-29");
(B). MONTH("2025-11-29");
What is the output of above two statements?
2025: 16 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
The area represented by black-colored filled parts of the circles 'A' and 'B' is given by___________.

2025: 15 May Shift 2
Informatics Practices
SQL Functions
Medium
Informatics Practices
State the output of the following SQL command.
SELECT MID('COMPUTER SCIENCE',-4);
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Medium
Informatics Practices
What is the output of the following query?
SELECT MOD(98,0);
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
Aggregate functions are also known as ______ functions.
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) GROUP BY | (I) work on a single row to return a single value. |
| (B) Single row functions | (II) function is used to group the rows together that contain similar values in a specified column. |
| (C) Multiple row functions | (III) work on a set of records as a whole and return a single value. |
| (D) Join | (IV) is an operation which is used to combine rows of two or more tables based on one or more common fields between them. |
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) POW( ) | (I) DATE FUNCTION |
| (B) COUNT( ) | (II) NUMERIC FUNCTION |
| (C) DAY( ) | (III) TEXT FUNCTION |
| (D) MID( ) | (IV) AGGREGATE FUNCTION |
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
DELETE statement __________.
2025: 15 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
State the output of the following query.
SELECT UCASE(LOWER(LEFT('INFORMATICS',3)));
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Medium
Informatics Practices
Consider the following two tables 'A' and 'B'.
A
| Name | RollNo | Marks |
|---|---|---|
| amit | 1 | 10 |
| vinit | NULL | 20 |
| punit | 3 | 37 |
B
| RollNo | MobileNo | Address |
|---|---|---|
| 1 | 91 | Kushinagar |
| 2 | 92 | Murthal |
| 3 | 93 | Churu |
| 4 | 98 | Deoria |
The Cartesian Product of table 'A' and table 'B' shows ________ rows as NULL values.
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
Consider the following table "Manager".
Manager
| MID | MNAME |
|---|---|
| 1 | KAMAL |
| 2 | ARPIT |
| NULL | ANIL |
| 4 | NULL |
| 5 | ARTI |
What will be the output of the following SQL statement?
SELECT COUNT(*) from Manager;
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Medium
Informatics Practices
To display the 'Number of Bikes' purchased by each customer from the 'SALE' table, what will be the correct order of the following statements?
(A) SELECT CustID, COUNT(*) "Number of Bikes"
(B) HAVING COUNT(*)>3
(C) GROUP BY CustID
(D) FROM SALE
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Medium
Informatics Practices
Which of the following statements are correct with respect to NOW() and DATE()?
(A) NOW() returns the current system date
(B) NOW() returns the current system date and time
(C) DATE() returns the date part from the given date
(D) DATE() returns the current system date
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
What is output of the following SQL statement?
LENGTH(MID("COMPUTER",3,5));
2025: 14 May Shift 1
Informatics Practices
SQL Functions
Easy
Informatics Practices
What is output of the following SQL statement?
SELECT POWER(POWER(2,3),2);
2025: 13 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) SUBSTR() | (I) To find the position of a substring in a string. |
| (B) TRIM() | (II) To extract a substring from a string. |
| (C) INSTR() | (III) To extract characters from the left side of the string. |
| (D) LEFT() | (IV) To remove spaces from both the sides of the string. |
2025: 13 May Shift 2
Informatics Practices
SQL Functions
Easy
Informatics Practices
Given the following table:
EMPLOYEE
| ENO | SALARY |
|---|---|
| A101 | 4000 |
| B109 | NULL |
| C508 | 6000 |
| A305 | 2000 |
State the output of the following query based on the above given table.
SELECT COUNT(SALARY) FROM EMPLOYEE;