DAD 220 Cardinality and Targeted Data Template Lalotra

docx

School

Meru University College of Science and Technology (MUCST) *

*We aren’t endorsed by this school

Course

FINANCIAL

Subject

Business

Date

Nov 24, 2024

Type

docx

Pages

9

Uploaded by ColloLocco

Report
DAD 220 Cardinality and Targeted Data Template Name: Arun Lalotra Course: DAD-220-T1027 Intro to Struct Database Env 23EW1 Date: 21 st September 2023 Institution Affiliation: South New Hampshire University
1. Retrieve Employee Tuples And Identify The Number Of Employees In San Francisco And New York.
2. Retrieve Order Details For Ordernumber 10330, 10338, And 10194 And Identify What Type Of Cardinality This Represents In The Entity Relationship Model.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
3. Delete records from the payments table where the customer number equals 103.
4. Retrieve Customer Records For Sales Representative Barry Jones And Identify If The Relationships Are One-To-One Or One-To-Many.
5. Retrieve Records For Customers Who Reside In Massachusetts And Identify Their Sales Rep And The Relationship Of Entities. Identify If These Entities Demonstrate One-To-One Or Many-To-Many Relationships.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
6. Add One Customer Record With Your Last Name Using An INSERT Statement. You May Use The Name Of A Celebrity Or Fictional Character If You Don’t Use Your Own Name. 7. Reflection a. Define How Cardinality Is Applied And Why Different Numbers Of Records Returned From The Different Offices Cardinality refers to the relationship between two entities in a database. It defines how many instances of one entity can be related to an instance in another entity. In the databases I worked with, there are various types of relationships, such as one-to-one, one-to-many, and many-to-many. The different numbers of records returned from the different offices can be attributed to the nature of the data. For example, offices in larger cities like New York or San Francisco might have more employees than those in smaller cities. This reflects the real-world scenario where some locations naturally have higher or lower staffing levels.
b. Compare And Contrast The Different Queries And How Cardinality Applies The query to retrieve employee tuples and identify the number of employees in San Francisco and New York demonstrates a one-to-many relationship. Each office can have multiple employees, and the query aggregates the count of employees for each city. On the other hand, retrieving order details for specific order numbers also represents a one-to-many relationship. Each order can have multiple order details associated with it. Deleting records from the payments table for a specific customer number is a one-to-many operation. A single customer can have multiple payments associated with them. c. Describe Two Of The Crucial Benefits Of Cardinality In This Type Of Database. Data Integrity - Cardinality helps maintain data integrity by enforcing relationships between entities. This ensures that data remains consistent and accurate. Optimized Storage - Understanding cardinality aids in designing efficient database structures. For instance, one-to-many relationships can be represented using foreign keys rather than duplicating data, which saves storage space. Query Optimization - Knowing the cardinality of relationships allows for better query optimization. This ensures that queries are executed efficiently, leading to faster response times. Flexibility in Data Retrieval - Cardinality provides the framework for retrieving data from multiple related tables. This flexibility is crucial for generating meaningful reports and insights from complex datasets.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help