database managment 12/4
Employee and Parking Place Relationship
Entities: Employee, Parking Place
Relationship: Assigned
Definition of Relationship Aspects:
Minimum: 0
Maximum: 1
Interpretation:
An employee can be assigned at most one parking place.
A parking place can be assigned to at most one employee.
Reasoning Behind 0-1 Cardinality:
Possible to randomly select an employee and a parking place.
Possible outcomes:
0: The selected parking place is not assigned to that employee.
1: The selected parking place is assigned to that employee.
Product Line and Products Relationship
Entities: Product Line, Products
Relationship: Contains
Cardinality Possibilities:
One-to-One
One-to-Many
Many-to-Many
Detailed Interpretation of Possibilities:
One-to-Many: If a product line can contain multiple products, while each product belongs to one product line.
Many-to-Many: If products can belong to multiple product lines, and each product line can contain multiple products.
Assumptions Required in Answers:
Always clarify assumptions related to cardinality in answers.
Vendor, Parts, and Warehouse Relationship
Entities: Vendor, Part, Warehouse
Relationship: Supplies
Cardinality Explanation:
A vendor supplies one or more parts.
A part can be supplied by one or more vendors.
A warehouse stores zero or one part or multiple parts.
A ternary relationship connects three entities: Vendor, Part, and Warehouse.
Characterization of Relationship:
Attributes: Quantity of parts supplied by a vendor stored in a warehouse.
Employee Supertype and Subtypes
Entities: Employee
Subtypes: Hourly, Salaried, Consultant
Superclass/Subclass Relationship:
An employee is characterized as a supertype with specific subtypes describing more details about the employee type.
Indication of Exclusivity:
A cross-bar indicates the types are mutually exclusive, meaning an employee can distinctly belong to one subtype but not multiple simultaneously.
Diagram Construction:
Use dashed lines with bubbles to represent supertype/subtype relationships.
Patients and Physicians Relationship
Entities: Patient, Physician
Relationships and Assignments:
A patient must consult only one physician.
A physician can have zero or more patients.
Assignments also link to pet ownership where a patient can have a pet assigned.
ER Diagram Constructions and Attributes
Representation in ER Diagrams:
Rectangles: Represent entities.
Diamonds: Indicate relationships.
Circles: Represent attributes of relationships.
Cardinality Specifications:
Represented with multiple lines indicating minimum and maximum, for instance, “minimum one, maximum one” would indicate that an entity must appear at least once and not more than once.
Data Analysis Careers Overview
Key Roles:
Data Analysts
Data Scientists
Database Administrators
Responsibilities of Roles:
Data Analyst: Focus on data relationships, managing data.
Data Scientist: Analyze big data, drawing patterns, predicting trends.
Database Administrator (DBA): Manages databases, secures data, grants access, disaster recovery planning, and system performance tuning.
Relationship Modeling and Database Design Principles
Connection Between Relationships and Database Design:
No Many-to-Many relationships are allowed; they should be modeled using junction tables.
Cardinality must be clearly spelled out and explained when modeling.
Trends in Database Technology
Emerging Trends:
Object Orientation in databases.
Expansion of NoSQL to handle a variety of data types using schema on read.
Significance of Big Data:
Data characterized by volume, velocity, variety, veracity, and value.
Example: Google Analytics for web traffic analysis.
Modern Data Management Techniques:
ETL (Extract, Transform, Load) processes for managing data influx.
The importance of data reliability in data-driven decisions.
Exam Preparation Overview and Structure
Exam Format:
Take-home exam with multiple sections covering various topics.
Key Sections Include:
SQL Questions
Physical Design Exercises
Normalization Practices
Integrity Rules Evaluation
ER Diagram Modelling
Subjective Questions
Details on Assessment Criteria:
Each section's scoring will vary; cardinality interpretation and diagrams are critical for full points.
Recommendations are to focus on the best three responses for subjective sections.