Introduction To Databases
Introduction To Databases
Databases
r
Clea
’s
IT
:
By
Minx Panda Bibiche Tigger
Database Definition
“A collection of related information
about a subject,
organised in a useful manner.”
(QUE Computer and Internet Dictionary)
Paper based Databases
• A database written on paper
• Does not involve a computer
• EG: an address book
Flat-file Databases
• All the data is stored in one large table
(ictlounge.com)
Databases
vs
Spreadsheets
Microsoft
Access
Why RDBMS’s?
DATA
• is easy to retrieve
• is easy to change and update
• can be used to draw conclusions
• can be used to make decisions
(shutterstock.com)
Where are RDBMS’s used ?
• Shops
• Schools
• Businesses
• Airports
• And more
What about Social Media?
• Facebook
• Instagram
• Twitter
• Whatsapp
• And more…
Example: A school
Student Class Teacher Guardian
StudentID ClassID TeacherID GuardianID
FirstName Subject FirstName FirstName
LastName Year LastName LastName
DateOfBirth Position Address
House Address City
Year City Email
Email Phone
Phone
Student-Class Class-Teacher
Student-Guardian
StudentID ClassID
StudentID
ClassID TeacherID
GuardianID
Relationship
Tables
Student
StudentID • A set of data about one entity
FirstName • Entity = a thing with a distinct and independent existence
LastName
DateOfBirth
• Each table must have a unique name.
House
Year
Example: Student Table
FirstName LastName DateOfBirth House Year
record
Fields and Records in Student Table
Field
FirstName LastName DateOfBirth House Year