DBMS
DBMS
3.A database schema is a logical representation of data that shows how data is
in the database should be stored logically
1.Physical:
Now the data and information is stored physically in storage system in the files
of database
2.Logical:
A] The logical i.e. need to apply to the store data and also describe stable views
entity relationship and integrity constant
B] The logical schema describe how data is stored in the form of table and how
attributes of table are connected
4. Online Catalog Rule: Store database description (schema) online for easy
access.
10. Integrity Independence Rule: Separate data integrity rules from application
programs.
11. Distribution Independence Rule: Hide data distribution details from users.
ASSIGNMENT 2
Q.1.What is data model ?
A data model is a conceptual representation of how data is organized,
structured, and related to each other. It's a blueprint or a diagram that describes
the entities, attributes, and relationships within a system or domain.
A data model typically includes:
1. Entities (tables, objects, etc.): Representing real-world objects or concepts.
2. Attributes (fields, columns, etc.): Describing the properties or characteristics of
entities.
3. Relationships: Defining how entities interact or are connected.
*A data model is a simple diagram that shows:
- What data is stored
- How it's organized
- How it's connected
It helps us understand and manage data in a clear and consistent way.
Q.2. Describe primary key foreign key and candidate key:
1. Primary Key (PK): Unique identifier for each record.
2. Foreign Key (FK): References the primary key of another table.
3. Candidate Key: Alternative unique identifier for each record, potentially
becoming the primary key.
*In short
- PK: Unique ID
- FK: References another table's PK
- Candidate Key: Alternative unique ID
Q.3 State the basic componets used in ER diagram:
Entity
Attributes
Relationship
Weak entity
Strong entity
Simple attribute
Key attribute
Composite attribute
Derived attribute
Multivalued attribute