Comprehensive notes for Chapter 2 Basic Concepts and Terminologies of Databases. Covers Data Elements, Relations, Keys (Primary, Foreign, etc.), Users, and Views.
Field: A unit of data consisting of one or more characters (e.g., Name).
Record: Collection of related fields (e.g., Student Record).
File: Collection of related records (e.g., Student File).
Field Types:
Definition: A two-dimensional array containing data about an entity. Rows (Tuples) represent records, Columns (Attributes) represent fields.
Properties:
Key: An attribute or set of attributes that uniquely identifies a tuple.
Definition: A virtual table derived from one or more base tables. It does not exist physically but is created dynamically.
Purpose:
CREATE VIEW Student_View AS
SELECT StudNo, StudName
FROM Student
WHERE StudGender = 'M';End User: Person who interacts with the database application. Does not need technical knowledge.
Data Administrator (DA): Responsible for defining data standards, policies, and procedures. Manages data definitions and dictionary.
Database Administrator (DBA): Responsible for technical implementation, performance, security, backup, and recovery of the database system. Tasks include: