DB Present

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 22

AACS3013

Database
Development
And
Application

Tarc Cinema
Background
– Found in 2000

– 26 screens in 13 locations, such as Setapak, Kuching and Perlis.

– Gold class and Premiere Class halls

– 3D films and 2D films

– Support debit/credit card, touch n go, wechatPay


Organisation Chart

TARCinema

Human Resource Department Sales and Marketing Department Accounting and Finance Department

Training and Promotions and Reporting and Financial


Development Marketing Statements

Information Technology Department Purchasing Department

Recruitment and Staffing Customer Service and Payroll


Sales

Supplier Selection and


Software Development
Relationships

Compliance and Quality


Support and Maintenance
Control
Structure Chart
Business Rules
– A Customer can make one or many Reservation.
– A particular Reservation can be only done by one Customer.

– A Customer can do zero, one or more than one Cancellation request.


– Every single Cancellation request can be only done by one Customer.

– One Cancellation can only get one Refund at a time.


– One Refund is given for one successful Cancellation only.
Business Rules
– One Reservation need to make one Payment at a time.
– A Payment is only deal with one Reservation only.

– A particular Movie can have one or even many Reservation.


– One Reservation is only for one Movie.

– One Movie can have one or even more than one Schedule arrangement.
– A particular Schedule arrangement is for one Movie only.
Business Rules
– One Hall can have one or more than one Schedule arrangement.
– A particular Schedule arrangement is for one Hall only.

– One Reservation have many Seat_Details on it.


– Every single Seat_Details is only for one Reservation.

– One Seat have many Seat_Details on it.


– Every single Seat_Details is only for one Seat.
Business Rules
– One movie Hall got one or even more than one Seat.
– One particular Seat is only in a movie Hall.

– One Cinema got one or even more than one movie Hall.
– One particular movie Hall is only in a Cinema.
ERD Diagram
Reservation record in a specify
month
Insert the SQL file and Enter the Month
Reservation record in a specify
month
Result
Reservation record in a specify
month
Result
Reservation record in a specify
month
Result
Reservation record in a specify
month
Result
SQL CODE
SHOW CUSTOMER WHO
RESERVED THE SPECIFIC MOVIE
Insert the SQL file and Enter the Movie ID
CUSTOMER SEAT RESERVED
ON MAC001 REPORT
Result
CUSTOMER SEAT RESERVED
ON MAC001 REPORT
Result
CUSTOMER SEAT RESERVED
ON MAC001 REPORT
Result
SQL CODE
Conclusion
 Database
 Analyse data in a variety of ways
 Improve the quantity and consistency of information
 Store large number of information
 Allow user to display some restriction information by using SQL
Thank You

You might also like