Home › Class 12 Computer Science › Chapter 12
Class 12 · Computer Science · Chapter 12
SQL I: DDL, DML and Queries: complete notes
Neat, exam-ready notebook-style notes for SQL I: DDL, DML and Queries, following your NCERT book. This chapter is part of the complete Complete Computer Science Notes for Class 12 (CBSE 083, 2026-27).
Board questions: SQL I: DDL, DML and Queries: CBSE previous year questions with solutions →
Free preview: SQL I: DDL, DML and Queries notes
A quick look at the chapter from our Class 12 Computer Science notes. The full chapter notes have the detailed explanations, diagrams and practice questions with answers.
Topics in this chapter ★★★ very important · ★★ important · ★ asked sometimes
- 12.1 SQL, data types and constraints ★★★
- 12.2 DML: INSERT, SELECT ★★★
- 12.3 UPDATE and DELETE ★★★
- Multiple choice: 20 MCQs
Last-night summary
- ALTER TABLE … ADD col type / DROP COLUMN col / MODIFY col type / ADD PRIMARY KEY (col) / DROP PRIMARY KEY. DROP TABLE vs DELETE FROM.
- SELECT cols FROM t WHERE cond ORDER BY col [DESC]; DISTINCT; AS alias; =, <>, AND/OR/NOT, IN (…), BETWEEN a AND b (inclusive), LIKE ('%' many, '_' one), IS [NOT] NULL.
What you get in the pack
- For CBSE Class 12 Computer Science (083), 2026-27: all three units (Python 40, Networks 10, Database 20 marks)
- All 14 chapters complete
- Every program and every output verified by actually running the code; SQL outputs checked on sample tables
- All NCERT exercises (Class XII, plus the Class XI Functions chapter) solved in full
- Every CBSE board question of 2024, 2025 and 2026 (Set 4, Q.P. code 91) solved chapter-wise as per the official marking scheme
- Network design case studies with cable-layout diagrams; SQL tables with worked outputs
- Practice sets, 20 MCQs and 6 Assertion-Reason questions with answers in every chapter, plus a last-night summary
- Single-column layout with clear code boxes, plus a print (B/W) version of every chapter
All chapters in this pack
- Python Revision Tour
- Functions
- Exception Handling
- File Handling: Text Files
- Binary Files (pickle)
- CSV Files
- Data Structure: Stack
- Networks I: Data Communication and Media
- Networks II: Devices, Topologies, Types
- Network Protocols and Web Services
- Database Concepts and the Relational Model
- SQL I: DDL, DML and Queries
- SQL II: Aggregates, GROUP BY, Joins
- Interface of Python with MySQL
