UNIT 1 CONCEPTUAL DATA MODELING
Traditional File Based Approach:
- Data Stored in Files
- Limitations:
- Data Duplication - Each program stores it own copy of files
- Data Inconsistency - Same data at different places need to be updated everywhere
- Data Security - Difficult to implement
- No Concurrency
- Searching takes time
Shared File Approach:
- Files shared between applications
- solves data duplication and inconsistency
DATABASE MANAGEMENT SYSTEM:
- DATABASE: Collection of Related Data
- DBMS: Software system used to create and manage databases
DB SYSTEM ENVIRONMENT:
- Components:
- Collection
- storage
- management
- access control
- SQL - Structured Query Language, Relational DB based e.g. MySQL, PostgreSQL
- NoSQL - Not relational DB e.g. MongoDB
- Access Languages
- DDL - Database Design Languages
- DML - Database Manipulation Language
- Procedural
- Non Procedural
DBLC
- Stages in implementing a database
- Stages:
- Requirements analysis:
- involves identification of problem and information needs to design a DB
- Logical design:
- 1st Conceptual Design is created, an ER - entity Relationship Diagram or description of structure of DB
- ER - Shows tables , fields, keys and relationships of DB
- The tables are then normalized to reduce redundancy
- Problems to avoid
- redundancy - repeated information
- incompleteness - bad design is impossible to model
- Physical design
- Maximize efficiency by finding ways to speed by Reading and writing to DB
- Implementation
- ER converted into tables which are converted into SQL Statements executed on RDBMS to create a DB
- Monitoring, Modification and maintenance
- Data Security, monitoring is done here
- Modification involves addition and deletion of records and creating additional tables
ER MODEL