Upload
britney-brown
View
218
Download
0
Embed Size (px)
DESCRIPTION
REQUIREMENTS What are your expectations from the online reservation system / developed system? Do you think gold membership would be ideal? (For example, with gold membership you would be able to assign priorities to people.)
Citation preview
İ.SENCER GÜLTUNAA.SİNAN ŞEKERCİ
MEHMET KÖYLÜOĞLU
GENERAL INFORMATIONThe company's name is “Newcastle Pub” and
located at “Eskişehir yolu Tepe Prime Avenue B Blok B01-B02” and “Tunus Cad. No:66/1 Kavaklıdere”. The business is a “Pub with Restaurant”and run by Mustafa Türk, owner of the company.
REQUIREMENTS
What are your expectations from the online reservation system / developed system?
Do you think gold membership would be ideal? (For example, with gold membership you would be able to assign priorities to people.)
ER DIAGRAM
MAPPING BRANCH(BranchID, BranchName, PhoneNumber, Address) WORKER(BranchID (FK refers to BRANCH),
IdentificationNumber, Name, LastName) CUSTOMER(Username, Name, Email, Password) ADMIN(Username, Email, Password) RESERVATION(CustomerUsername (FK refers to Customer),
AdminUsername (FK refers to Admin), BranchID (FK refers to BRANCH), Date, NumberOfSeats)
PLACE(BranchID(FK refers to BRANCH) ReservationDate(FK
Refers to RESERVATION))
SQL Select Username, Password From Customer where email='[email protected]' Select w.name, w.lastname from worker w, branch b where w.branchid = b.branchid AND b.branchID = 2 select customername, numberofseats, date from reservation where date = '31/12/2012' select b.branchid, avg(r.numberofseats) from branch b, reservation r having r.date like '31/12/%' select reservationdate, branchid, count(*) from place where reservationdate between '01/01/2012' and '31/12/2012' group by brachid
ThanksThank you for listening to us.Special thanks to our teachers and research
assistants for their helpfulness.Now it's time for demo.