TN Online TestSamacheer Kalvi practice

Database Concepts - Study Notes

Share this chapter: Telegram

Chapter Summary

This chapter introduces the fundamental concepts of database systems and relational model architectures. It covers the core differences between simple database management systems (DBMS) and relational systems (RDBMS). It explains structural components such as relations, tuples, and attributes, alongside various data models, entity relationships, and relational algebra operators like selection, projection, union, intersection, difference, and cartesian product.

Learning Objectives

Key Concepts and Definitions

Worked Methods

1. Performing the Select Operation (σ)

The selection operation σ is a unary operator that filters rows from a relation based on a specified condition. The syntax is σcondition(Relation). For example, to find all records in a student table where the course is "Big Data", we apply σcourse = "Big Data"(STUDENT). This yields a new relation containing only the matching rows.

2. Performing the Project Operation (Π)

The projection operation Π is a unary operator used to select specific columns from a relation while discarding others. The syntax is Πcolumn_list(Relation). For example, Πstudno, course(STUDENT) extracts only the vertical columns for student number and course, and automatically eliminates any duplicate rows in the resulting subset.

3. Implementing Set Operations

Set-based operators require relations to be union-compatible (carrying identical schemas). The UNION (∪) operator combines unique records from both tables. The SET DIFFERENCE (−) operator extracts records belonging to the first relation but absent in the second. The INTERSECTION (∩) operator extracts only the rows shared by both relations. The CARTESIAN PRODUCT (×) combines every row of one relation with every row of another, producing all possible cross-pairings.

Common Exam Traps

Exam Tips

Solved MCQs → Practice test →

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Formula SheetAll key formulas

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart