Database Management System (RDBMS & SQL Command Bank) Formulas & Cheat Sheet
Complete chapter-wise reference, step-by-step formula explanations, structured table, and board exam trap warnings.
Core Concepts & Theoretical Foundations
- RDBMS Concepts: Relational Database Management System organizes data into 2D tables (Relations) comprising Rows (Tuples/Records) and Columns (Attributes/Fields).
- Keys: (1) Primary Key (uniquely identifies a record, cannot be NULL), (2) Candidate Key (all minimal superkeys eligible to be primary key), (3) Alternate Key (candidate keys not chosen as primary key), (4) Foreign Key (field in one table referencing the primary key of another table).
- Data Types: CHAR (fixed length), VARCHAR (variable length), INTEGER, DECIMAL, DATE, BOOLEAN.
- SQL Classification: DDL (Data Definition Language: CREATE, ALTER, DROP) vs DML (Data Manipulation Language: SELECT, INSERT, UPDATE, DELETE).
- Forms & Reports: Forms provide user-friendly GUI data entry; Reports format and summarize data for printing.
Chapter Formulas & Equations (2 entries)
| # | Topic / Formula Name | Mathematical Form & Equation | Conditions, Meaning & Board Tips |
|---|---|---|---|
| 1 | Relational Table Properties |
|
Adding a row increases Cardinality by 1; adding a column increases Degree by 1. |
| 2 | Standard SQL Query Syntax Blueprint |
|
SELECT specifies projection; FROM specifies table source; WHERE specifies row selection filter. |
CBSE Board Exam Tips & Frequent Pitfalls
- Distinguish between CHAR and VARCHAR: CHAR(10) always occupies 10 bytes padded with spaces; VARCHAR(10) occupies only the actual characters typed.
- Remember that Primary Key enforces both Entity Integrity (no NULLs) and Uniqueness.
Step-by-Step Worked Board Exam Examples
Example 1: Consider a table 'Student' with columns (RollNo, Name, Stream, Marks). Write SQL queries to: (a) Display all science students with marks above 80, (b) Increase marks by 5 for RollNo 105.
Step 1: (a) Use SELECT with WHERE condition combining Stream and Marks using AND.
Step 2: (b) Use UPDATE command with SET and WHERE.
Common Mistakes to Avoid in Exam
- Using double quotes for string values in SQL; standard SQL uses single quotes for literals ('Science').
- Confusing DROP (deletes entire table schema) with DELETE (removes specific row tuples).
Target Practice Questions
Q1. If a database table has 5 columns and 12 rows, what are its Degree and Cardinality?
Correct Answer: Degree = 5 (number of columns); Cardinality = 12 (number of rows).
Frequently Asked Questions
Q. Which open-source database application is taught in CBSE Class 10 IT?
LibreOffice Base / OpenOffice Base (or MySQL).