Question

In: Computer Science

For each case below, graphically represent entities and relationships between entities. Include primary keys, foreign keys...

For each case below, graphically represent entities and relationships between entities. Include primary keys, foreign keys where appropriate. For each entity add a couple of attributes (fields) and then provide a brief statement explaining why each entity (table) is in 3NF.

An online retailer of coffee beans maintains a long list of unique coffee flavors. The company purchases beans from a number of suppliers; however, each specific flavor of coffee is purchased from only a single supplier. Many of the customers are repeat purchasers and typically order at least five flavors of beans in each order.

Solutions

Expert Solution

Conference speaker :-

  1. Speaker -name
  2. Speaker- id
  3. Session -time

Registration :-

  1. Speaker -name
  2. Speaker- id
  3. Session -time
  4. Attendees-id
  5. Attendees- name

Conference session :-

  1. Session -time
  2. Speaker- id

Conference attendees  :-

  1. Attendees-id
  2. Attendees- name
  3. Session -time

Online retailer of coffee beans maintains :-

  1. Coffee- coffee flavors
  2. Company- name
  3. Company-id
  4. Attendees-id
  5. Supplier-id

Registration details three represent 3NF.

  • Conference speaker
  • Conference session
  • Conference-attendees

Retailer coffee <------many to many----------->Conference-attendees

take multiple coffee and one coffee can multiple take people.// Relationship between many to many.

Conference session<----------many to many------------>Conference-attendees

many people can attend many Conference.// Relationship between many to many.

Conference speaker<-----------one to many------------>Conference session

one speaker can take multiple session // Relationship between one to many.


Related Solutions

Consider the following relational schema about a University (the primary keys are underlined and foreign keys...
Consider the following relational schema about a University (the primary keys are underlined and foreign keys are italic) STUDENT(StudentID, name, major, year, age) CLASS(ClassName, meetsAt, room, LecturerID) ENROLLED(StudentID, ClassName, mark) LECTURER(LecturerID, name, DepartmentID) DEPARTMENT(DepartmentID, name) Write the SQL statements for the following query: B1. Find the age of the oldest student. B2. Find the ID’s of lecturers whose name begins with “K” \ B3. Find the age of the youngest student who is enrolled in Mechatronics. B4. Find the age...
Create a Database Schema for a hotel reservation system. indicate the Primary Keys, Foreign Keys, and...
Create a Database Schema for a hotel reservation system. indicate the Primary Keys, Foreign Keys, and the one-to-one or one-to-many relationships between the tables. Also describe in a small paragraph the scope of the back-end database, by explaining the different tables and their relations in your schema.
Please create the following tables for a tool rental database with appropriate primary keys & foreign...
Please create the following tables for a tool rental database with appropriate primary keys & foreign keys. Assumptions: 1. Each tool belongs to a category. 2. Each category may have a parent category but the parent category should not have a parent category (so at most two levels). E.g., a Tool A belongs to the electric mower, and electric mowers belong to mowers. Mower has no parent category. 3. Each tool can be rented at different time units. The typical...
What are the three primary distinct entities in this system and what are the primary functions of each?
Part 1: The role and functioning of central banksC) The United States central bank is called the Federal reserve system. What are the three primary distinct entities in this system and what are the primary functions of each? How do their responsibilities and actions overlap?D) What is a technocrat?
Consider the following three tables, primary and foreign keys. Table Name        SalesPeople Attribute Name                  &nbsp
Consider the following three tables, primary and foreign keys. Table Name        SalesPeople Attribute Name                                Type                                      Key Type EmployeeNumber             Number                               Primary Key Name                                   Character JobTitle                                  Character            Address                                 Character PhoneNumber                     Character YearsInPosition                             Number Table Name        ProductDescription Attribute Name                                Type                                      Key Type                 ProductNumber                Number                               Primary Key                 ProductName                  Character                            ProductPrice                   Number Table Name        SalesOrder Attribute Name                                Type                                      Key Type                 SalesOrderNumber        Number                               Primary Key                 ProductNumber               Number                               Foreign Key                 EmployeeNumber           Number                               Foreign Key                 SalesOrderDate                Date Assume that you...
Discuss why databases are important in accounting information systems. Describe primary and foreign keys, normalization and...
Discuss why databases are important in accounting information systems. Describe primary and foreign keys, normalization and database cardinalities. Why are each important to the database design? Your initial posting should be 250-500 words and must be submitted by Thursday, 11:59 pm MST, of this week.
Discuss why databases are important in accounting information systems. Describe primary and foreign keys, normalization and...
Discuss why databases are important in accounting information systems. Describe primary and foreign keys, normalization and database cardinalities. Why are each important to the database design? Your initial posting should be 250-500 words and must be submitted by Thursday, 11:59 pm MST, of this week.
What is the foreign key that creates a relationship between the Book and Publisher entities?
What is the foreign key that creates a relationship between the Book and Publisher entities?
Consider the following proposed relationships between an independent and a dependent variable. In each case, would...
Consider the following proposed relationships between an independent and a dependent variable. In each case, would it be realistic for a researcher to perform an experiment to test the theory? If yes, briefly describe what would be randomly assigned in the experiment; if no, briefly explain why not. (a)​An individual’s level of religiosity (X) and his or her preferences for different political candidates (Y). (b)​Exposure to negative political news (X) and political apathy (Y).  (c)​Military service (X) and attitudes...
Compare between Sales/Collection and Acquisition/Paymentbusiness processes by describing the differences between entities (REA) and relationships used...
Compare between Sales/Collection and Acquisition/Paymentbusiness processes by describing the differences between entities (REA) and relationships used in each business process. Identify the common entities and relationships between both business processes
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT