CBSE Class 11 Information Practices Functions In My Sql Worksheet

Welcome! Check out the CBSE Class 11 Information Practices Functions In My Sql Worksheet as a downloadable PDF. Get complete and printable Class 11 Informatics Practices worksheets for Chapter 8 Introduction to Structured Query Language (SQL), built by expert teachers to match the 2026-27 curriculum guidelines from NCERT, CBSE, and KVS, ensuring learners master every key concept.

Chapter 8 Introduction to Structured Query Language (SQL) Worksheet Solutions for Class 11 Informatics Practices

Students of Class 11 should use this Informatics Practices practice paper to check their understanding of Chapter 8 Introduction to Structured Query Language (SQL) as it includes essential problems and detailed solutions. Regular self-testing with these will help you achieve higher marks in your school tests and final examinations.

Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL) Worksheet with Answers

Q1. Write the output for the following statements:

Statement

Output

Statement

Output

1

SELECT POW(2,4);

12

SELECT POW(2,-2);

2

SELECT POW(-2,3);

13

SELECT POW(-2,-3);

3

SELECT ROUND(-1.23);

14

SELECT ROUND(-1.57);

4

SELECT ROUND(-1.58);

15

SELECT ROUND(1.43);

5

SELECT ROUND(6.298,1);

16

SELECT ROUND(6.235,0);

6

SELECT ROUND(56.34,-1);

17

SELECT TRUNCATE(7.543,1);

7

SELECT TRUNCATE(4.567,0);

18

SELECT TRUNCATE(-76.56,1)

8

SELECT TRUNCATE(342,-2);

19

SELECT SQRT(25);

9

SELECT SQRT(125);

20

SELECT SIGN(-43);

10

SELECT SIGN(654);

21

SELECT SIGN(-25);

11

SELECT LENGTH(‘INDIA’);

22

SELECT LENGTH(‘4321’);

23

SELECT CONCAT(‘My’, ‘S’, ‘SQL’);

24

SELECT CONCAT(‘Class’, NULL, ‘XI’);

25

SELECT INSTR (‘INFORMATICS’, ‘FOR’);

26

SELECT INSTR (‘COMPUTERS’, ‘PER’);

27

SELECT INSTR (‘COMPUTER’, ‘pu’);

28

SELECT LOWER (‘INFORMATION’);

29

SELECT UPPER (‘Indian’);

30

SELECT LCASE (‘IT’);

32

SELECT UCASE (‘COMPUTER’);

 

Statement

Output

33

SELECT LEFT (‘Information’, 3);

34

SELECT LEFT(“SCIENCE”,6);

35

SELECT RIGHT (‘INFORMATICS’,4);

36

SELECT LTRIM (‘ Class ’);

37

SELECT RTRIM (‘ Class ’);

38

SELECT TRIM (‘ Class ’);

39

SELECT SUBSTRING (‘INFORMATICS’,3);

40

SELECT SUBSTRING (‘INFORMATION’, FROM 4);

41

SELECT SUBSTRING (‘INFORMATION’, 3,4);

42

SELECT SUBSTRING (‘INFORMATION’, -3);

43

SELECT SUBSTRING (‘INFORMATION’, -5,3);

44

SELECT SUBSTRING (‘INFORMATION’, FROM -4 FOR 2);

45

SELECT ASCII(‘B’);

46

SELECT CHAR(65);

47

SELECT CURDATE ( );

48

SELECT NOW ( );

49

SELECT SYSDATE ( );

50

SELECT DATE (‘2016-02-26 01:02:03’);

51

SELECT MONTH (‘2016-02-26’);

52

SELECT YEAR (‘2016-02-26’);

53

SELECT DAYNAME(‘2016-02-26’);

54

SELECT DAYOFMONTH(‘2016-02-26’);

55

SELECT DAYOFWEEK(‘2016-02-26’);

56

SELECT DAYOFYEAR(‘2016-02-26’);

 

Q1. Create a Table “Employee” with the following constraints

FIELD NAMEDATA TYPECONSTRAINTFIELD NAMEDATA TYPECONSTRAINT
empcodechar(4)PRIMARY KEY,NOT ULLempdojdate 
empnamevarchar(25)NOT NULLempdeptvarchar(20) 
empaddvarchar(30) empphoneint 
empgenderchar(1) empdesgvarchar(20) 
empdobdate empsalint 


Q2. Add 10 records to the above table “Employee”.

Q3. Write the following SQL commands on the basis of above table “Employee”

a) Show all the information of the employees.

b) Display all the employee names, designation and salary.

c) Display all the employee names and their salary in descending order.

d) Display all the different departments in the company.

e) Display all the details of Female Employee.

f) Display the employee name, address and phone number from “HR” department.

g) Display all the details of employee name starting with “a”.

h) Display all the employee details (name, designation , department and gender) with salary 1000 OR to 2000 OR.

i) Display all the details of the staff that joined from year 2000.

j) Display the names of all the “GM” in the company. (GM- General Manager).

k) Display the names of all the employees from “finance” department with salary more than 1000

l) Display the names of all the Male employees from “transport” department with salary less than 1000 .

m) Display the details of the entire employee NOT from “Sales” department.

n) Display the name, address of employee without phone number. 

Q1. Create a Table “Class” with the following constraints (Rollno(2), Name Varchar(30), Stipend number(5), Subject Char(25), Avgmark decimal(6,2),Grade char(1));

ROLLNONAMESTIPENDSUBJECTAVGMARKGRADE
1VIKAS1200MEDICAL67B
2BOBY1400HUMANITIES78.8B
3TARUN1000MEDICAL64.8C
4VARUN1800NON-MEDICAL84A
5ATUL1800NON-MEDICAL90A

Q2. Write the following SQL commands on the basis of above table “CLASS”

a) Display all the Non Medical stream students Name from the table Class.

b) List the Names that have grade “A” sorted by stipend in the ascending order.

c) Arrange the records Average marks wise .

d) List the records where grade is B or C.

e) Display the records where Name ends with N.

f) Display those records whose average mark in between 70 to 90.

g) Display the different Subjects in the table.

h) Display students Name where Avergemarks is more than 75.

i) Display all records in Descending order (Name) wise.

j) Insert a new row with the following data (06, ‘MITHUN’, 1300, ‘HUMANITIES’, ‘98’,’A’). 

 

Functions in MySQL
 

Question 1. Write the output for the following statements:
Answer:

Sl.No.StatementOutput
1SELECT POW(2,4);16
2SELECT POW(-2,3);-8
3SELECT ROUND(-1.23);-1
4SELECT ROUND(-1.58);-2
5SELECT ROUND(6.298,1);6.3
6SELECT ROUND(56.34,-1);60
7SELECT TRUNCATE(4.567,0);4
8SELECT TRUNCATE(342,-2);300
9SELECT SQRT(125);11.180339887498949
10SELECT SIGN(654);1
11SELECT LENGTH('INDIA');5
12SELECT POW(2,-2);0.25
13SELECT POW(-2,-3);-0.125
14SELECT ROUND(-1.57);-2
15SELECT ROUND(1.43);1
16SELECT ROUND(6.235,0);6
17SELECT TRUNCATE(7.543,1);7.5
18SELECT TRUNCATE(-76.56,1);-76.5
19SELECT SQRT(25);5
20SELECT SIGN(-43);-1
21SELECT SIGN(-25);-1
22SELECT LENGTH('4321');4
23SELECT CONCAT('My', 'S', 'SQL');'MySQL'
24SELECT CONCAT('Class', NULL, 'XI');NULL
25SELECT INSTR ('INFORMATICS', 'FOR');3
26SELECT INSTR ('COMPUTERS', 'PER');0
27SELECT INSTR ('COMPUTER', 'pu');4
28SELECT LOWER ('INFORMATION');'information'
29SELECT UPPER ('Indian');'INDIAN'
30SELECT LCASE ('IT');'it'
32SELECT UCASE ('COMPUTER');'COMPUTER'
33SELECT LEFT ('Information', 3);'Inf'
34SELECT LEFT("SCIENCE",6);'SCIENC'
35SELECT RIGHT ('INFORMATICS',4);'TICS'
36SELECT LTRIM (' Class ');'Class '
37SELECT RTRIM (' Class ');' Class'
38SELECT TRIM (' Class ');'Class'
39SELECT SUBSTRING ('INFORMATICS',3);'FORMATICS'
40SELECT SUBSTRING ('INFORMATION', FROM 4);'ORMATION'
41SELECT SUBSTRING ('INFORMATION', 3,4);'FORM'
42SELECT SUBSTRING ('INFORMATION', -3);'ION'
43SELECT SUBSTRING ('INFORMATION', -5,3);'ATI'
44SELECT SUBSTRING ('INFORMATION', FROM -4 FOR 2);'TI'
45SELECT ASCII('B');66
46SELECT CHAR(65);'A'
47SELECT CURDATE ( );2026-08-21
48SELECT NOW ( );2026-08-21 16:25:00
49SELECT SYSDATE ( );2026-08-21 16:25:00
50SELECT DATE ('2016-02-26 01:02:03');'2016-02-26'
51SELECT MONTH ('2016-02-26');2
52SELECT YEAR ('2016-02-26');2016
53SELECT DAYNAME('2016-02-26');'Friday'
54SELECT DAYOFMONTH('2016-02-26');26
55SELECT DAYOFWEEK('2016-02-26');6
56SELECT DAYOFYEAR('2016-02-26');57

In simple words: This table maps standard MySQL queries (numeric calculations, string slices, and calendar functions) directly to their computed outputs.

Exam Tip: Be mindful of string functions like `INSTR` and `SUBSTRING` where indexing in MySQL is 1-based, unlike standard programming languages where it is 0-based. Also, remember that concatenating any string with a `NULL` value yields a final output of `NULL`.

Practice Questions & Worksheets for Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL)

Mastering Chapter 8 Introduction to Structured Query Language (SQL) with Printable Worksheets

Enhance your test readiness by practicing the targeted questions provided for Chapter 8 Introduction to Structured Query Language (SQL). Authored by experienced teachers in compliance with the recent 2026 CBSE guidelines for Class 11, these resources encourage active learning. We advise Class 11 students to complete these exercises regularly to reinforce core principles in Informatics Practices.

Verified Solutions & Answer Formats

Built using specifications from the active NCERT book for Class 11 Informatics Practices, these worksheets mirror authentic academic structures. Comparing your completed work with our expert-verified solutions ensures you learn standard formatting for CBSE exams. Supplement your study routine with the provided MCQ questions for Informatics Practices to touch upon every essential learning objective.

Maximizing Academic Performance in Class 11

Using this Class 11 Informatics Practices study material consistently prepares you for standard testing trends. For any tricky concepts encountered in Chapter 8 Introduction to Structured Query Language (SQL), our detailed NCERT solutions for Class 11 Informatics Practices offer reliable guidance. Every revision sheet and assignment on our platform is completely free and updated to help Class 11 learners excel academically.

FAQs

Where can I download the 2026-27 CBSE printable worksheets for Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL)?

You can download the latest chapter-wise printable worksheets for Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL) for free from StudiesToday.com. These have been made as per the latest CBSE curriculum for this academic year.

Are these Chapter 8 Introduction to Structured Query Language (SQL) Informatics Practices worksheets based on the new competency-based education (CBE) model?

Yes, Class 11 Informatics Practices worksheets for Chapter 8 Introduction to Structured Query Language (SQL) focus on activity-based learning and also competency-style questions. This helps students to apply theoretical knowledge to practical scenarios.

Do the Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL) worksheets have answers?

Yes, we have provided solved worksheets for Class 11 Informatics Practices Chapter 8 Introduction to Structured Query Language (SQL) to help students verify their answers instantly.

Can I print these Chapter 8 Introduction to Structured Query Language (SQL) Informatics Practices test sheets?

Yes, our Class 11 Informatics Practices test sheets are mobile-friendly PDFs and can be printed by teachers for classroom.

What is the benefit of solving chapter-wise worksheets for Informatics Practices Class 11 Chapter 8 Introduction to Structured Query Language (SQL)?

For Chapter 8 Introduction to Structured Query Language (SQL), regular practice with our worksheets will improve question-handling speed and help students understand all technical terms and diagrams.