Class 12 CBSE Computer Science (2026) Complete
SQL Guide
1. Exam-Oriented SQL Statements (CBSE)
1 CREATE TABLE Student (Roll INT PRIMARY KEY, Name VARCHAR(20));
2 INSERT INTO Student VALUES (1, 'Ali');
3 SELECT * FROM Student WHERE Roll=1;
4 UPDATE Student SET Name='Ayaan' WHERE Roll=1;
5 DELETE FROM Student WHERE Roll=1;
2. SQL with Examples & Output
Example Table: Student
Roll Name Marks
1 Ali 85
2 Sara 92
Query: SELECT Name FROM Student WHERE Marks > 90;
Output: Sara
3. One-Page SQL Revision Sheet
1 DDL → CREATE, DROP, ALTER, TRUNCATE
2 DML → INSERT, UPDATE, DELETE
3 DQL → SELECT
4 Aggregate → COUNT, SUM, AVG, MIN, MAX
5 Constraints → PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL
4. MCQs & SQL Practice
1 Q1. Which command removes all records but not table structure? → TRUNCATE
2 Q2. Which clause is used with GROUP BY? → HAVING
5. CBSE 2026 Syllabus Mapping
1 Unit 4 → Relational Database Concepts
2 Unit 5 → SQL Commands
3 Practical → SQL Queries & Output