AmbifulWorksheets
Cheat sheet
CBSE · Class 11 · Informatics Practices

Database Concepts

Why databases replace file systems, the relational model (relation, tuple, attribute, domain, degree and cardinality) and keys: candidate, primary, alternate, composite and foreign.

Key ideas

Remember

Degreethe number of columns (attributes)
Cardinalitythe number of rows (tuples); after adding a rows and deleting d: n + a − d
Primary keyunique and never NULL in every row
Alternate keysall the candidate keys except the primary key (one fewer)
Foreign key checklook up each value in the referenced table; a missing value breaks referential integrity
Schema; instancethe structure of the relations; the data stored at one moment

Watch out

Worked example

Table: ATTENDANCE
AttDate | RollNo | Status
2026-07-12 | 9 | P
2026-07-12 | 34 | P
2026-07-13 | 9 | P
2026-07-13 | 34 | P
2026-07-14 | 9 | P
2026-07-14 | 34 | P
Answer Yes or No: (a) Is AttDate alone unique? (b) Is RollNo alone unique? (c) Is the pair (AttDate, RollNo) unique?

Working: each date repeats for every student and each roll number for every date; the pair appears once

Answer: (a) No; (b) No; (c) Yes