Home › Class 12 Computer Science › Chapter 13
Class 12 · Computer Science · Chapter 13
SQL II: Aggregates, GROUP BY, Joins: complete notes
Neat, exam-ready notebook-style notes for SQL II: Aggregates, GROUP BY, Joins, 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 II: Aggregates, GROUP BY, Joins: CBSE previous year questions with solutions →
Free preview: SQL II: Aggregates, GROUP BY, Joins 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
- 13.1 Aggregate functions ★★★
- 13.2 GROUP BY ★★★
- 13.3 HAVING ★★★
- 13.4 Cartesian product and joins ★★★
- Multiple choice: 20 MCQs
Last-night summary
- GROUP BY col → one row per group; HAVING filters groups (after grouping) vs WHERE filters rows (before). Order: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.
- Cartesian product: rows r₁×r₂, columns c₁+c₂. Equi-join: WHERE T1.c = T2.c (column twice, qualify names). Natural join: NATURAL JOIN, same-named column once.
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
