Skip to content

Volume 2: Database Query using SQL ​

Structured Query Language (SQL) and Relational Database Management Systems (RDBMS) constitute 25 Marks in the CBSE Class 12 Information Practices board examination.


1. Unit Weightage & Strategic Importance ​

mermaid
pie title CBSE IP (065) Unit Weightage
    "Database Query using SQL (Vol 2)" : 25
    "Data Handling with Pandas (Vol 1)" : 25
    "Computer Networks (Vol 3)" : 10
    "Societal Impacts (Vol 3)" : 10
ChapterKey TopicsCBSE Marks RangeQuestion Types
1. Single-Row FunctionsMath (POWER, ROUND, MOD), Text (MID, LENGTH, INSTR), Date (NOW, MONTHNAME, DAYNAME)8 - 10 MarksDirect function evaluation, Output prediction, Query formulation
2. Aggregate Functions & GroupingCOUNT(*), COUNT(col), SUM, AVG, MAX, MIN, GROUP BY, HAVING vs WHERE7 - 9 MarksGroup summary queries, Output prediction with NULL handling
3. Table Joins & DDL/DML FoundationsCartesian Product, Equi-Join, Natural Join, Degree & Cardinality, ALTER, UPDATE, DELETE6 - 8 MarksMulti-table query formulation, Degree & Cardinality calculations

2. RDBMS Theoretical Foundations ​

A Relational Database stores data in tables (relations) consisting of columns (attributes) and rows (tuples).

Core Terminology ​

  • Relation (Table): A collection of data organized in rows and columns.
  • Tuple (Row / Record): A single entity row representing one record in a table.
  • Attribute (Column / Field): A named column representing a specific property.
  • Degree: The total number of columns (attributes) in a relation.
  • Cardinality: The total number of rows (tuples) in a relation.
  • Primary Key: An attribute (or set of attributes) that uniquely identifies each tuple in a relation. Must be unique and cannot contain NULL.
  • Candidate Key: Any attribute or minimal combination of attributes that is capable of becoming a Primary Key.
  • Alternate Key: A candidate key that is not chosen as the Primary Key (Alternate Keys=Candidate Keys−Primary Key).
  • Foreign Key: An attribute in a table that references the Primary Key of another table, establishing a link and maintaining referential integrity.

3. Mathematical Principles of Relations ​

Degree and Cardinality Rules ​

Let Relation R1 have Degree D1 and Cardinality C1, and Relation R2 have Degree D2 and Cardinality C2.

  1. Cartesian Product (R1×R2):

    Degree(R1×R2)=D1+D2Cardinality(R1×R2)=C1×C2
  2. Equi-Join (R1⋈R2):

    Degree(R1⋈R2)=D1+D2Cardinality(R1⋈R2)≤C1×C2

4. Volume Chapters & Progression ​

  1. Single-Row Math, Text & Date Functions: Complete master manual for POWER, ROUND, MOD, UCASE, LCASE, MID, SUBSTRING, LENGTH, INSTR, TRIM, NOW, SYSDATE, DATE, MONTH, YEAR, DAYNAME.
  2. Aggregate Functions & GROUP BY / HAVING: Deep dive into group-level computations, NULL handling differences, and the strict rules governing WHERE versus HAVING.
  3. Table Joins (Equi/Natural) & DDL/DML Review: Two-table join syntax, foreign keys, Cartesian products, and comprehensive DDL (CREATE, ALTER, DROP) vs DML (INSERT, UPDATE, DELETE, SELECT) commands.

Flügel Information Practices Academic Treatise (CBSE Code 065) • Contact Editorial Team • Privacy Policy