Database Design Week 5
Database Design Week 5
5.3.1 Tables
Data in a relational database are stored in tables sometimes called “relations”. A row in a
table corresponds to a single record in a file. Another name for row in a table is “tuple”.
Table 1: A table called “STUDENT”
Student_ID Name Address date of birth Boarding Fees
FPA/SC/98/01 Binta Abaka K9 Abidjan Str. 22 Dec 1966 800
FPA /SC/98/02 Dulen Kpenetese 63 Aba Rd P/H 15 May 1975 1000
FPA /SC/98/03 Ugoma Ifeanyi 3 Police Station Rd 22 Jan 1970 300
FPA /SC/98/04 Ademola Rufai 61b Bishop Oluwole Str 22 Jun 1965 450
The layout above has been chosen for readability, with the definition of each column in the
table set out on a separate line in the order in which it is to appear in the table.
The explanations of the above statements are as follows;
“Student_ID char (13) not null unique”, states that the first column is to be called “Student_ID”,
it can be up to 13 characters long, it must not be empty “null” and its value must be unique.
“date of birth”, states that the fourth column is to be called “date of birth”, and its value must be a
date.
Update Student
Set Boarding Fess = Boarding Fess + 250
where Student_ID = ‘FPA/SC/98/01’
5.3.5 Delete Statement
The delete statement is used to remove one or more rows from a table. It has the following
syntax;
Delete From Table Where condition