1. Concept of Database
- Data: Raw facts without organization.
- Database: Organized collection of inter-related data ensuring safety, security, and integrity. Stores data in tables (relations).
2. Database Management System (DBMS)
- DBMS: Software for storing, maintaining, and using databases.
- Database System: Combination of database and DBMS software.
- Examples: Oracle, MS SQL Server, MS Access, Paradox, DB2, MySQL (open source and freeware).
3. Advantages of Database Systems
- Reduces Redundancy: Avoids data duplication.
- Controls Inconsistency: Prevents data discrepancies by centralizing storage.
- Facilitates Data Sharing: Allows multiple users to access data.
- Ensures Security: Protects data from unauthorized access or modifications.
- Maintains Integrity: Enforces rules to ensure data validity (e.g., date format).
4. Concept of Data Model
- Data Model: Representation of data organization in the database.
- Relational Data Model: Data stored in tables (rows and columns).
- Network Data Model: Data represented by records linked with pointers.
- Hierarchical Data Model: Data organized as a tree with a root and child records.
- Object-Oriented Data Model: Data represented as objects within classes.
5. Basics of Relational Data Model
- Relation (Table): Two-dimensional matrix of data with rows and columns.
- Atomicity: Columns have unique names and indivisible values.
- No Duplicity: Unique rows; no identical rows allowed.
- Homogeneity: Columns contain similar data types.
- Ordering: Rows and columns can be unordered.
- Key Terms:
- Domain: Set of possible values for a column.
- Tuple/Record: Row in a table.
- Attribute/Field: Column in a table.
- Degree: Number of columns in a table.
- Cardinality: Number of rows in a table.
6. Concept of Keys
- Primary Key: Unique identifier for each record in a table. Each table should have one.
- Examples: Student Admission Number, Book Accession Number, Employee ID.
- Candidate Key: Any column or set of columns that could serve as a primary key. One is chosen as the primary key.
- Alternate Key: Candidate keys not chosen as the primary key.
- Foreign Key: A non-key attribute that refers to the primary key of another table, used to establish relationships and enforce referential integrity.
Example of Keys
- Student Table:
- Primary Key: Admission_No
- Candidate Keys: RollNo, Admission_No
- Alternate Key: RollNo (if Admission_No is chosen as primary)
| Admission_No | RollNo | Name | Class | Marks |
|---|---|---|---|---|
| 2301 | 1 | Seema Chauhan | 11 | 23 |
| 1501 | 2 | Ajay Kumar | 11 | 15 |
| 1678 | 3 | Vansh Pratap | 11 | 20 |
| 7003 | 4 | Manohar Lal | 11 | 15 |
Related News
बांग्लादेश ए महिला बनाम पाकिस्तान ए महिला, सेमीफाइनल 2 (बी1वीएसए2), एएसी महिला एशिया कप राइजिंग स्टार्स 2026 – पूर्ण कमेंट्री
बाबर आजम: पाकिस्तान की टी20 टीम में उनकी भूमिका और भविष्य की योजनाएं
आर रहमान ने सुप्रीम कोर्ट में दागर ब्रदर्स के ‘शिव स्तुति’ प्रदर्शन को स्वीकार करने के लिए सहमति व्यक्त की
ब्रह्मांड की पहली गलतियों में से एक का पता लगाया गया है
ब्लैक होल्स: विंड्स या जेट्स, दोनों नहीं
यात्रा से विकसित होने वाली संयम और लचीलापन की क्षमता
