Question
The movies are rented out in stores and there are several stores. Each store has a unique distributor that supplies the store with tapes. A
The movies are rented out in stores and there are several stores. Each store has a unique distributor that supplies the store with tapes. A distributor may supply more than one store. Each distributor has a name, an address, and a phone number. Each store has a name, an address, and a phone number. For each employee we must keep the following information: working store, a name, a supervisor, an address, a phone number, SIN (social insurance number) and the date when the employee was hired. For each customer we have to keep the following information: a name, an address, and a phone number (if any). For each rental, we must keep track of which employee served the customer, which movie and which copy (i.e. type) the customer rented, information about payment, the date and the time of the rental, the status (rented, returned_in_time, returned_late), the rate (i.e. the price), and if applicable, due date and overdue charges. About the payment we have to keep which of the employees accepted the payment (does not have to be the same employee who rented the tape), the type of payment (i.e. cash, check, credit card, direct debit - for each type you must provide for relevant information to be kept, e.g. credit card number if credit card is used), the amount of the payment, date + time of the payment, payment status (completed if cash or the money have been received, approved if debit or credit card go through, pending if the check has not cleared yet). About each tape we have to keep information in what condition the tape is and what movie is on the tape. About each movie we have to keep its title, director's name, simple description, the name of a (single) major star, the movie's rating (use numbers 1-5).
Table Description:
1. DISTRIBUTOR - Details for Distributors
Constraints: DistributorID Primary key
2. STORE -Details of Store
Constraints: StoreID Primary key, DistributorID foreign key.
3. EMPLOYEE - Employee details
Constraints: EmployeeSIN Primary key,
STOREID foreign key,
MGRSIN foreign key from Employee table EmployeeSIN,
4. CUSTOMER - Customer details
Constraints - CUSTID Primary key,
5. MOVIE - Movie Details
Constraints- MovieID primary key
6. STORE_MOVIE - The movies, the store is having.
MovieId and StoreID both Primary Key
MOVIEID foreign key,
7. TAPE -
Constraints-
PRIMARY KEY - TAPEID, MOVIEID, STOREID,
FOREIGN KEY - (MOVIEID, STOREID) in Store_Movie
8. PAYMENT_STATUS
Constraints - PSTATUSID Primary Key,
9. PAYMENT_TYPE
Constraints - PTID Primary Key,
10. PAYMENT
Constraints - PAYID Primary Key,
EMPSIN Foreign Key,
CUSTID Foreign Key,
PSTATUSID Foreign Key,
PTID Foreign Key,
11. RENTAL_STATUS
Constraints - RSTATUSID Primary Key,
12. MOVIE_RENTAL -
Constraints - PRIMARY KEY (TAPEID, MOVIEID, STOREID, RDTTM),
EMPSIN, CUSTID , TAPEID , STOREID, PAYID, MOVIEID foreign key
RSTATUSID Foreign key
13. DEBIT_CARD
Constraints - PAYID primary key and foreign key,
14. CREDIT_CARD
PAYID Primary Key and foreign key,
15. CHECK
Constraint -PayID primary key and foreign key,
Tasks:
- Make an ER Diagram on any of the online tools like smartdraw, lucid chart etc.
- Make the above defined tables with proper keys and relationships in MS Access
- Add the data in the tables. (atleast 20 rows in each table)
- Make any 10 queries from the above tables in MS Access (at least 2 queries should be from joining atleast 2 tables). Queries should make sense.
- Make a form for atleast 3 tables you feel most important.
- Make a discharge report for the patient discharged in last 7 days.
- Make a report for the doctors group by doctor on call and regular doctor
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
Solution Creating an ER diagram designing tables in MS Access adding data and creating queries require handson work in specific software tools which cannot be done through textbased communication Howe...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started