Class 12 Computer Science Database Notes
Class 12 Computer Science Database Notes
Database Concepts
What is a Database?
A database is an organized collection of data that can be easily accessed, managed, and updated.
Example: A school database contains data of students like name, roll number, marks, etc.
1. Relation (Table)
Example:
|---------|-------|-------|
2. Tuple
Page 1
Class 12 Computer Science - Database Concepts Notes
3. Attribute
4. Domain
5. Degree
6. Cardinality
Keys in a Database
a. Candidate Key
b. Primary Key
c. Alternate Key
Page 2
Class 12 Computer Science - Database Concepts Notes
d. Foreign Key
A field in one table that refers to the primary key in another table.
- RDBMS: DBMS that uses the relational model (e.g., MySQL, Oracle).
Page 3