ZiBaT => Peter
Levinsky => PBA-Database => exercise |
|
Updated : 2018-02-08
|
Idea : Group-work to understand and present diffrent aspect of defining data in SQL databases.
Background: http://www.w3schools.com/sql/default.asp
(create table, constraints, primary,foreign key, check, index, auto incretement, dates etc.)
Background:
Present how to create, delete, modify a simple table and how to define a primary key with or without auto increment.
An example could be:
Person
PersonID (PK) | Address | Phone |
Background:
Present how to use different data types in SQL including Date
Background:
Present how to make different constraints on datatypes, the presentations should contain check, default, index and unique
Background:
Present how to create foreign key between tables and describe the constraints. Describe how to obtain Referential Integrity by using ON Delete/On Update.
An example could be:
Customer
CustomerID (PK) | Address | Phone |
Reservation
ReservationID (PK) | Date | Customer (FK) | NoOfSeats |
Background:
Present how to create and use Views.
Background:
Present how to create users and how to grant privileges to users for tables and views..