ZiBaT => Peter
Levinsky => PBA-Database => exercise |
And Users |
Updated : 2018-03-16
|
SERVER, p. 176-187 + 189-194
Previous exercises (basis for this exercise) PetersPanSQLexercise1.htm
Make a simple view of the restaurant tables but without the waiter (for customers - they do not need to know the waiter).
Can you get the information from this view ?
Can you insert a new restaurant table in this view ?
Make another simple view of the restaurant tables at 'windowSite' with all values
.Can you get the information from this view ?
Can you insert a new restaurant table in this view ?
Make another simple view of the restaurant tables but only tables at 'windowSite' and only the values of the number of seats.
Can you get the information from this view ?
Can you insert a new restaurant table in this view ?
Make a view, which join the tables 'Restaurant Table', 'Reservation' and 'Booking' and present all the values in the three tables.
Can you get the information from this view ?
Can you insert a new restaurant table in this view ? or a new Booking ?
Can you get all booked tables for a particular day from the view ?
Make a view, which takes the values from the view (BookedTables1) and present only the values 'Seats, WindowSite and DayAndTime'.
Can you get the information from this view ?
Can you insert a new restaurant table in this view ?
Can you get all booked tables for a particular day from the view ?
To let Customers get access to the database, create a user 'customer' without any password.
Try to connect with your new user - hat can you (the user) see af tables etc?
The restaurant have some customers who come back, so to give these customers better service, create another type of user CustomerWithProfile, where a password is assigned.
Try to connect with your new user - hat can you (the user) see af tables etc?
For the User 'Customer' assign access, so they only can see informationes (ie. select from the tables and views).