Q1:

2025: 20 May Shift 1

SQL

Medium

Common

Given Table 'Uniform':

UcodeUnameUcolor
1ShirtWhite
2TrouserGrey
3TieBlue

Given Table 'Cost':

UcodeSizePrice
1L580
2M500
3L890
4M810

Find the output for: SELECT * FROM UNIFORM, COST;

Answer options
Option 3
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 1

Q4:

2025: 20 May Shift 1

SQL

Easy

Common

Match List-I with List-II

List-IList-II
(Operation/Functions)(Description)
(A) GROUP BY Function(I) Used to combine rows from two or more tables based on one or more common fields between them.
(B) Single Row function(II) This works on a set of records as a whole and returns a single value.
(C) Multiple Row function(III) It is used to group rows of a table that contain the same values in a specified column.
(D) Join operation(IV) This works on a single row of the table and returns a single value.
Answer options
Option 4
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 4

Q5:

2025: 16 May Shift 1

SQL

Easy

Common

MONTHNAME(date) function returns_________.

Answer options
Option 2
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 5

Q6:

2025: 16 May Shift 1

SQL

Medium

Common

Which of the following statements are incorrect with respect to join operation in database?

(A) A JOIN operation is like a cartesian product which makes all possible combinations of tuples.

(B) NATURAL JOIN removes the redundant attribute.

(C) N+1 joins are needed to combine 'N' tables on equality conditions.

(D) With JOIN clause, we may not use any relational operators to combine tuples of two tables.

Answer options
Option 3
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 6

Q7:

2025: 16 May Shift 1

SQL

Easy

Common

Consider the following table 'Student':

Student

IDNAME
1NULL
NULLAMIT

What will be the output of the following SQL statement?

SELECT COUNT(*) from Student;

Answer options
Option 3
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 7

Q8:

2025: 16 May Shift 1

SQL

Easy

Common

Consider the following table 'CUET':

CUET

ROLLNOMARKS
110
210

Which of the following SQL statements will give same output?

(A) SELECT MAX(MARKS)FROM CUET;

(B) SELECT MIN(MARKS)FROM CUET;

(C) SELECT AVG(MARKS)FROM CUET;

(D) SELECT SUM(MARKS)FROM CUET;

Answer options
Option 2
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 8

Q9:

2025: 16 May Shift 1

SQL

Easy

Common

Match List-I with List-II

List-IList-II
(A) TRIM(string)(I) Returns a part of a string of size 'n' starting from the specified position of the string.
(B) SUBSTR(string, pos, n)(II) Returns the given string after removing both leading and trailing white space characters.
(C) LENGTH(string)(III) Return the number of characters in the specified string.
(D) INSTR(string, substring)(IV) Returns the position of the first occurrence of the part of the string in the given string
Answer options
Option 1
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 9

Q10:

2025: 16 May Shift 1

SQL

Easy

Common

To add an attribute to an existing table, we use __________ command.

Answer options

Q12:

2025: 16 May Shift 1

SQL

Medium

Common

Which of the following statements are correct with respect to databases?

(A) Table records can be deleted or updated using DROP and ALTER statements.

(B) SELECT is used to retrieve data from the tables in a database.

(C) The SELECT statement, when combined with the DESCRIBE clause, returns records without repetition.

(D) The WHERE clause is used to retrieve data that meets some specified conditions.

Answer options

Q15:

2025: 15 May Shift 2

SQL

Easy

Common

Consider the following table and answer the question that follows:-

STUDENT

RNOSNAMEFEES
101RENU900
102MEERANULL
103SONAM800
104RITU850
105MOHAN950

Select the correct command to get the following output:

RNOFEES
101900
104850
Answer options

Q16:

2025: 15 May Shift 2

SQL

Easy

Common

Match List-I with List-II

List-IList-II
(A) AVG()(I) NUMERIC
(B) ROUND()(II) GROUP BY
(C) MONTH()(III) AGGREGATE
(D) HAVING(IV) DATE and TIME
Answer options

Q20:

2025: 14 May Shift 1

SQL

Easy

Common

The 'VARCHAR(30)' data type represents_______________.

Answer options

Q21:

2025: 14 May Shift 1

SQL

Easy

Common

Which of the following are the examples of aggregate functions in SQL?

(A) MAX()

(B) AVG()

(C) SUM()

(D) COUNT(*)

Answer options

Q22:

2025: 14 May Shift 1

SQL

Easy

Common

Which of the following is correct syntax for adding a primary key to an already existing relation 'Customer'?

Answer options

Q23:

2025: 14 May Shift 1

SQL

Easy

Common

Multiple Row functions are also called____________.

Answer options

Q25:

2025: 14 May Shift 1

SQL

Medium

Common

Consider the following table named "MANAGER".

IDMANAGERNAME
1AMIT
2ANIL
3SUMAN
4NULL

The number of rows returned by following SQL statement is____________ .

SELECT COUNT(MANAGERNAME) FROM MANAGER;

Answer options

Q28:

2025: 13 May Shift 2

SQL

Medium

Common

Given Relation: 'STUDENT'

SNOSNAMEMARKS
1Amit20
2Karuna40
3KavitaNULL
4Anuj30

Find the value of :

SELECT AVG(MARKS) FROM STUDENT;

Answer options

Q29:

2025: 13 May Shift 2

SQL

Easy

Common

Match List-I with List-II

List-IList-II
(Aggregate function)(Description)
(A) count(marks)(I) Count all rows
(B) count(*)(II) Finding average of non null values of marks
(C) avg(marks)(III) Count all non null values of marks column
(D) sum(marks)(IV) Finding sum of all marks
Answer options

Q30:

2025: 13 May Shift 2

SQL

Easy

Common

_________________ is used to search for a specific pattern in a column.

Answer options