Download the Class 12 Computer Science Chapter 9 Structured Query Language (SQL) NCERT Book PDF free, straight from the official NCERT textbook and matched to the 2026-27 CBSE syllabus. This is the original chapter, with the exact text on DDL, DML and DQL commands, the MySQL data types, the worked CREATE, INSERT and SELECT statements, and the GROUP BY and join examples that the board exam is set from.
- The full NCERT chapter on SQL, with every worked CREATE, INSERT, SELECT, UPDATE and DELETE query.
- Includes the back-exercise of 8 questions on RDBMS, SQL functions, joins and constraints.
- Pairs with the NCERT Solutions, Notes and Handwritten Notes linked lower on this page.
This is the official NCERT Computer Science Chapter 9 text, hosted free for Class 12 students and matched to the 2026-27 CBSE syllabus.
Student Feedback: In a Collegedunia poll of 5,910 Class 12 Computer Science students, 74% of students said they kept the original SQL chapter PDF open while writing queries, because the board paper copies its CREATE, SELECT and GROUP BY syntax almost word for word. Most read it once, then practised the MOVIE and Product table queries straight from the exercise.
Source: 2026-27 Class 12 Computer Science student poll. Sample of 5,910 students from CBSE schools across 13 states.
What Is Inside the SQL NCERT Book Chapter
Structured Query Language (SQL) is the ninth chapter of the Class 12 Computer Science NCERT textbook. It teaches how to create a database, put data into tables and pull answers back out using SQL, run on MySQL. The chapter is almost all worked queries, so students learn each command by reading a small example first and then trying it. The list below shows what the original chapter holds, so students know what they are downloading.
- What SQL is: a query language for an RDBMS such as MySQL, Oracle or SQL Server that lets you store, change and read data without saying how.
- Defining data (DDL):
CREATE,ALTERandDROPto build the database and the table structure with the right data types. - Changing data (DML):
INSERT,UPDATEandDELETEto add, edit and remove rows. - Asking questions (DQL): the
SELECTstatement withWHERE,ORDER BY,GROUP BY, functions and joins.
Reading the original chapter matters because the board marks queries against the NCERT syntax. A student who has read the textbook once will write a SELECT or a GROUP BY the way the examiner expects, which the Notes and Solutions then reinforce.
Topic List of the NCERT Chapter
The chapter follows a clear order, and the PDF keeps the NCERT section headings. The table below lists each section with a one-line note, so students can see the shape of the chapter before they read. It also helps with planning revision.
| Section | What it covers |
|---|---|
| 9.1 Introduction | What an RDBMS is, why query languages exist, and where SQL fits. |
| 9.2 Structured Query Language (SQL) | Installing MySQL, the mysql> prompt and the basic rules for writing SQL. |
| 9.3 Data Types and Constraints in MySQL | Types like INT, CHAR, VARCHAR, DATE and constraints such as PRIMARY KEY and NOT NULL. |
| 9.4 SQL for Data Definition | The DDL commands CREATE DATABASE, CREATE TABLE, ALTER and DROP. |
| 9.5 SQL for Data Manipulation | The DML commands INSERT, plus updating and deleting rows. |
| 9.6 SQL for Data Query | The SELECT statement with WHERE, DISTINCT and ORDER BY. |
| 9.7 Functions in SQL | Single-row functions (math, string, date) and aggregate functions like SUM and AVG. |
| 9.8 GROUP BY Clause | Grouping rows and using HAVING to filter the groups. |
| 9.9 Operations on Relations | Union, set difference and the Cartesian product on two tables. |
| 9.10 Using Two Relations in a Query | Joining two tables to answer a single question. |
The most exam-heavy sections are data query, functions and GROUP BY, so students should read those slowly. Table-based query questions come up in nearly every board paper, so it is worth a careful first read rather than a skim.
SQL Commands Covered in the Chapter
The single most useful idea in the chapter is that SQL splits into command families, and each family has a job. Students who learn this can pick the right command on sight and answer the query questions the board reuses. A short summary is below so students can see what the PDF carries, but the full worked queries are in the download.
| Family | Main commands | What it does |
|---|---|---|
| DDL (Data Definition) | CREATE, ALTER, DROP | Builds and changes the database and table structure |
| DML (Data Manipulation) | INSERT, UPDATE, DELETE | Adds, edits and removes the rows of data |
| DQL (Data Query) | SELECT | Reads and filters data to answer a question |
Here is a CREATE TABLE exactly in the NCERT style, so students get used to the real form. It sets the data type and a constraint for each column:
CREATE TABLE Student (
RollNo INTEGER PRIMARY KEY,
Name VARCHAR(30) NOT NULL,
Marks DECIMAL(5,2)
);
The SELECT statement is the one the board tests most, because it answers most questions. The example below filters rows with WHERE and sorts them with ORDER BY, just as the chapter shows:
SELECT Name, Marks
FROM Student
WHERE Marks > 75
ORDER BY Marks DESC;
For totals and counts, the chapter uses aggregate functions with GROUP BY. The query below finds the average marks per class, which is a very common board question:
SELECT Class, AVG(Marks)
FROM Student
GROUP BY Class;
How to Download the Class 12 Computer Science Chapter 9 PDF
The PDF is free and easy to save on any device. The steps below show students how to get the chapter and keep it for offline reading. No login or payment is needed at any stage.
- Open the download card at the top of this page and tap the PDF button.
- Save to your device so you can read the chapter offline, even without internet.
- Print if you prefer paper: the query blocks and the sample tables stay clear when printed.
- Pair it with the NCERT Solutions linked below to attempt the 8 back-exercise questions as you read.
Many students search for the class 12 computer science chapter 9 sql pdf the night before a practical or board exam, so a saved copy means you can revise even when the network is down. Keep the textbook PDF and the solved answers together for a full self-study set.
Why Read the Original NCERT Chapter
Notes and solutions are useful, but the original chapter is the source they all come from. There are clear reasons to read it at least once. The points below explain why the textbook still matters even when quick notes are everywhere.
- Board syntax: the chapter's own
CREATE,SELECTandGROUP BYform is the safest pattern to copy in the exam. - Full context: the chapter explains why a primary key matters and when to use
HAVINGinstead ofWHERE, points notes often cut for space. - Worked examples: the sample tables and the query outputs are exactly what board questions are built from.
- Exercise: the back-exercise is the exact set the Solutions answer, so reading it first sharpens recall.
The honest takeaway is that the textbook is the master copy. Read it once to understand each command, then move to the Notes for revision and the Solutions for practice. That order builds stronger query writing than starting from notes alone.
How the Book PDF Pairs with the Solutions and Notes
The Book PDF gives you the original text and queries. To study the chapter fully, use it with the other resources for the same chapter, all linked in the table below. The chapter sits between Database Concepts (Chapter 8) and Computer Networks (Chapter 10), so a quick recap of database concepts first makes the table and key ideas click faster.
| Resource | Best used for |
|---|---|
| SQL Class 12 NCERT Solutions | Full step-by-step answers and queries for all 8 exercise questions |
| SQL Class 12 Notes | A typed chapter summary with DDL, DML, DQL commands and functions in tables |
| SQL Class 12 Handwritten Notes | One-shot revision in a scanned notebook style with query snippets |
Tip: read the NCERT chapter first for the full picture, then revise from the Notes and test yourself with the Solutions. The textbook is where every good SQL answer starts.
All NCERT Book PDFs for Class 12 Computer Science
The table links the NCERT Book PDF for every chapter in Class 12 Computer Science, so students can download the whole course in one place. Structured Query Language (SQL) is highlighted.
| Chapter | NCERT Book PDF |
|---|---|
| Chapter 1 | Exception Handling in Python |
| Chapter 2 | File Handling in Python |
| Chapter 3 | Stack |
| Chapter 4 | Queue |
| Chapter 5 | Sorting |
| Chapter 6 | Searching |
| Chapter 7 | Understanding Data |
| Chapter 8 | Database Concepts |
| Chapter 9 | Structured Query Language (SQL) |
| Chapter 10 | Computer Networks |
| Chapter 11 | Data Communication |
| Chapter 12 | Security Aspects |
FAQs on SQL NCERT Book PDF
SQL Class 12 NCERT Book Common Questions
Ques. Where can I download the Class 12 Computer Science Chapter 9 Structured Query Language (SQL) NCERT Book PDF?
Ans. You can download the SQL NCERT Book PDF free from the download card at the top of this page. It is the official NCERT chapter, matched to the 2026-27 CBSE syllabus, and includes the DDL, DML and DQL commands, the MySQL data types and the worked queries along with the sample tables.
Ques. What topics does the SQL NCERT chapter cover?
Ans. The chapter covers what an RDBMS is, MySQL data types and constraints, data definition with CREATE, ALTER and DROP, data manipulation with INSERT, UPDATE and DELETE, data query with SELECT, single-row and aggregate functions, the GROUP BY clause, operations on relations and joining two tables. It ends with an 8-question back-exercise.
Ques. What is the difference between DDL, DML and DQL in this chapter?
Ans. DDL (Data Definition Language) builds and changes the structure with CREATE, ALTER and DROP. DML (Data Manipulation Language) changes the rows with INSERT, UPDATE and DELETE. DQL (Data Query Language) reads the data with SELECT. The chapter gives a worked example for each command, which is why the original PDF is worth reading.
Ques. Does the PDF explain the GROUP BY clause and aggregate functions?
Ans. Yes. The chapter explains how GROUP BY groups rows so an aggregate function such as SUM, AVG, COUNT, MAX or MIN can run on each group, and how HAVING filters those groups. A common board query like average price per product is solved this way, so the original PDF is worth reading carefully.
Ques. Is it useful to read the NCERT chapter and not just the notes?
Ans. Yes. The board paper copies the chapter's own query syntax and table examples closely, so reading the original chapter once helps students write SQL answers the way the examiner expects. Use the Notes for revision and the Solutions for practice afterwards.








Comments