Skip to content

Class 11 · Informatics Practices · Informatics Practices

Chapter 7: Database Concepts Notes

The big idea

A database management system stores related data in tables with keys, avoiding the redundancy, inconsistency and other limits of file systems.

Things to remember

  • File system limitations: difficulty in access, data redundancy, data inconsistency, data isolation, data dependence and weak controlled sharing. For example, a student's name kept in two files may differ after an update.
  • A DBMS is software to create and manage databases, giving users an abstract view and acting as an interface between users or programs and the data. Examples: MySQL, Oracle, PostgreSQL, SQL Server. Its limits are cost, complexity and risk of central failure.
  • Key concepts: schema (design of the database), constraints, metadata or data dictionary, instance (data at a given time), query, data manipulation (insert, delete, update) and the database engine.
  • In the relational model a table is a relation, a row is a tuple, a column is an attribute with a domain. Degree is the number of attributes and cardinality the number of tuples; 6 attributes and 43 tuples give degree 6, cardinality 43.
  • Properties of a relation: attribute names are unique and their order is immaterial; every tuple is distinct and tuple order is immaterial; values in a column are from the same domain, atomic, single-valued, and NULL means unknown.
  • A candidate key is any attribute (or set) that uniquely identifies tuples. The chosen one is the primary key and the others are alternate keys. A composite primary key uses more than one attribute, like RollNumber and AttendanceDate.
  • A foreign key is an attribute in one relation that refers to the primary key of another, linking the tables; for example GUID in STUDENT refers to GUID in GUARDIAN. Exam tip: name the referencing and referenced tables.

Words to know

Tap a card to see what it means

Quick quiz

⭐ 0 / 5
  1. A relation has 6 attributes and 40 tuples. After 3 tuples are inserted and 2 attributes are added, what are its degree and cardinality?

  2. In a table with ID and Mobile both unique, ID is chosen as the primary key. What is Mobile called?

  3. In STUDENT(RollNumber, SName, GUID), the column GUID refers to the primary key of GUARDIAN. In STUDENT, GUID is a:

  4. Which problem arises when the same guardian name is stored in two files and only one is updated?

  5. Assertion (A): No two tuples in a relation can be identical. Reason (R): Each tuple must be uniquely identified by its contents. Which is correct?

Match the pairs

Match each term with its meaning.

Try this at home

With an adult, think of a school library and write two tables with columns, such as BOOK and MEMBER, and decide which column would be the primary key in each.

All Informatics Practices notesChapter page and exercisesInformatics Practices syllabus