Fundamentals of RDBMS and Database Designs: Pinal Dave @pinaldave
Fundamentals of RDBMS and Database Designs: Pinal Dave @pinaldave
Database Designs
Pinal Dave
@pinaldave
Outline
Client/Server System
Web Application Server
History of Relational Database Model (RDBMS)
RDBMS Concepts
RDBMS Keys
Column Definition
Summary
Client/Server System
Server
Network Network
Client Client
Web Application Server
Application Server Database Server
Internet
Web Client /
Browser
Tables
A real world entity e.g. Address
Columns (Fields)
Attribute of the entity e.g. Street #, City, Zipcode
Rows (Records)
Set of values for a single instance of entity e.g. A single address
Cells
Intersection of a row and a column
Relational Database Model Concepts - Table
Tables
A real world entity e.g. Address
Relational Database Model Concepts - Columns
Columns (Fields)
Attribute of the entity e.g. Street #, City, Zipcode
Relational Database Model Concepts - Rows
Rows (Records)
Set of values for a single instance of entity e.g. A single address
Relational Database Model Concepts - Cell
Cells
Intersection of a row and a column
Relational Database Model Keys
Primary Key
Unique identifier of row
One per table
Does not allow NULL
Single or multiple columns (composite columns)
Unique Key
Ensures data is not duplicate
More than one per table
Allows one NULL
Foreign Key
Columns in a table that refer to a Primary Key of another table
Enforces referential integrity
One-to-one
One-to-many
Many-to-many
One to One
One to Many
One to Many
Many to Many
Many to Many
Column Definition