If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > [Design] Cinema database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-08, 13:43
antro antro is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
[Design] Cinema database

helou

i am designing database for cinema which should support ticket reservation. i am not convinced if my conception is good. i'll be appreciative for taking a look.

http://antrodus.fm.interia.pl/cinemasys.jpg

i'll be making an interface in delphi and i'm not sure how show reserved tickets on choosen seance. any ideas ?

thanks 4 mountain
Reply With Quote
  #2 (permalink)  
Old 06-02-08, 13:57
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
your primary keys are all wrong

i'm assuming that since each primary key includes an "id" INTEGER, your intention was to use a surrogate (e.g. IDENTITY or AUTO_INCREMENT or SEQUENCE)

you have separate tables movie_price_group and price_group -- why? (DECIMAL is correct, FLOAT is wrong)

when a ticket is issued, is it for a specific seat? if so, why are tickets not linked to the seats table?

finally, when is this assignment due?

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-02-08, 15:12
antro antro is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
http://antrodus.fm.interia.pl/cinemasys3.jpg

i'm using flamerobin [generators and triggers for autoincrement] for making database and delpihi for interface.

movie_price_group is for 'premiere'=1, 'old'=0,8, price_group is for 'mon-thu'=5$, 'weekends'=8$ i thought it could be usefull for calculating prices of tickets -> movie_price_group * price_group ...

....

In form1 i will make a view from tabels seance+movie+movie_kind+movie_age_restriction
i'd like to show
MOVIE title, time, SEANCE start,MOVIE_KIND name(ex. horror), MOVIE_AGE_RESTRICTION name(ex. 18)
i will make search engine by movie title. when i choose movie i'll go to form 2

with ideseance, idmovie and idroom (SEANCE) i'd like to paint all free [which are not in table TICKET] seats from room_has_seat
then form3 with info seat_no, row_no, date, start(seance start), title, cost

....

is it good ?

Last edited by antro; 06-03-08 at 06:43.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On