Question

In: Computer Science

Starting a Family Video, This is an SQL Assingment Each family video has a store number,...

Starting a Family Video, This is an SQL Assingment

Each family video has a store number, a street address, city, state, zipcode, and phone number. Each store will have a number of employees. Each staff member should have an employee number, name, salary, phone number. Each store should have a single employee that is the manager for that store.

assume that every DVD is a movie. Every movie will have a title and a single category (Action, Drama, Horrow, SciFi, etc.). Any given store will have any number of DVD copies of a movie. The rental cost is set for the movie and is the same across all stores.

Family Video track of all borrowers (borrower number,name, phone number). A borrower is allowed to rent from any store, and may rent any number of items, but each rented item must record the day it was rented and its return date.

1. Identify and list the strong entities.
2. Identify and list the weak entities.
3. For each entity list its attributes.
4. Identify and list the relationships between entities. If the relationship has any attributes, list them.
5. Draw the E/R diagram for your model.

Solutions

Expert Solution

you1) A strong entity is not dependent of any other entity in the schema. A strong entity will always have a primary key. Strong entities are represented by a single rectangle. The relationship of two strong entities is represented by a single diamond.

Therefore strong entity are

1.store

2.employee

2)A weak entity is dependent on a strong entity to ensure the its existence. Unlike a strong entity, a weak entity does not have any primary key. It instead has a partial discriminator key. A weak entity is represented by a double rectangle.

Weak entity are

  1. Video track
  2. Family video
  3. Movie

3) Entity followed by attributes:

Videotrack(store_number,name_customer,rented_date,due_date)

Employee (employee_number,name, phone number, salary)

Store(store_number, employee_number)

Family video( store_number,street,city,state,zipcode,phonenumber)

Movie(category,title)

4)

  • Familyvideo has N-N RELATIONSHIP WITH STORE
  • Family video has N-N RELATIONSHIP WITH Movie
  • Store HAS N-N RELATIONSHIP WITH Employee
  • Store has one manager who is an employee
  • Store has 1-1 RELATIONSHIP with video track

5) refer image


Related Solutions

A Video store (AVS) runs a standard video stores. Before a video can be put on...
A Video store (AVS) runs a standard video stores. Before a video can be put on the shelf, it must be cataloged and entered into the video database. Every customer must have a valid a AVS customer card to rent a video. Customers rent videos for three days at a time. Every time a customer rent video, the system must ensure that he/she does not have any overdue videos. If so, the overdue videos must be returned and an overdue...
IN MY SQL: - Display each Author’s ID, first and last names and the total number...
IN MY SQL: - Display each Author’s ID, first and last names and the total number of pages for all of the Books they have written. - Display each Book genre as well as the number of Books written in that genre with the column header “Number Of Books” - Display the Author’s first and last name, as well as their ID, and the Book title and number of pages for all of the books they have written that have...
Ethyl and Egbert are starting their family. Ethyl has free earlobes, but her mother has attached...
Ethyl and Egbert are starting their family. Ethyl has free earlobes, but her mother has attached earlobes; Ethyl is not able to roll her tongue. Egbert also has free earlobes, but he is able to roll his tongue. Egbert's son from a previous marriage has attached earlobes and is a non-roller. What are Ethyl's and Egbert's genotypes for these two genes? Fill in your answers on the answer page. If Ethyl and Egbert have a large family, what fraction of...
How to populate an SQL table that has two PK (foreign) that have different number of...
How to populate an SQL table that has two PK (foreign) that have different number of rows? Example: there are 3 tables. student, assigment, and hoursDedicated. there are 5 students, and 3 assigments, and x hoursDedicated. hoursDedicated has 2 Primary Keys, studentID and assigmentID. how do you populate hoursDedicated?? Thank you for your time.
What is the starting student number in each room (A and B) given following conditions??
When 5 students are shifted from room A to room B, the resulting number of students in the two rooms becomes equal. However if the 5 students are shifted in opposite direction, the resulting students in room A becomes double of those in room B. What is the starting student number in each room?
. A family has n number of kids. The possibility of 2n combinations by gender has...
. A family has n number of kids. The possibility of 2n combinations by gender has equal probability. In A, show that “the family has kids of both genders”. In B, please show “the family has at most one girl”. Please show that this event is dependent for n=2, but independent for n=3
Atlantic Video, a small video rental store in Philadelphia, is open 24 hours a day, and—due...
Atlantic Video, a small video rental store in Philadelphia, is open 24 hours a day, and—due to its proximity to a major business school—experiences customers arriving around the clock. A recent analysis done by the store manager indicates that there are 20 customers arriving every hour, with a standard deviation of interarrival times of 2 minute(s). This arrival pattern is consistent and is independent of the time of day. The checkout is currently operated by one employee, who needs on...
Atlantic Video, a small video rental store in Philadelphia, is open 24 hours a day, and—due...
Atlantic Video, a small video rental store in Philadelphia, is open 24 hours a day, and—due to its proximity to a major business school—experiences customers arriving around the clock. A recent analysis done by the store manager indicates that there are 10 customers arriving every hour, with a standard deviation of interarrival times of 1 minute(s). This arrival pattern is consistent and is independent of the time of day. The checkout is currently operated by one employee, who needs on...
The distribution of the number of people in line at a grocery store checkout has a...
The distribution of the number of people in line at a grocery store checkout has a mean of 3 and a variance of 9. A sample of the numbers of people in 50 grocery store checkout lines is taken. (a) (3 points) What’s the probability that the sample mean is less than 4.5? Round your answer to four (4) decimal places. (b) (3 points) What’s the probability that the sample mean is more than 2.25? Round your answer to four...
The distribution of the number of people in line at a grocery store has a mean...
The distribution of the number of people in line at a grocery store has a mean of 3 and a variance of 9. A sample of the numbers of people in line in 50 stores is taken. (a) Calculate the probability that the sample mean is more than 4? Round values to four decimal places. (b) Calculate the probability the sample mean is less than 2.5. Round answers to four decimal places. (c) Calculate the probability that the the sample...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT