Databasemanagementsystem 221106165504 00f6ec2c
Databasemanagementsystem 221106165504 00f6ec2c
Databasemanagementsystem 221106165504 00f6ec2c
INTRODUCTION TO DATABASES
Fields
Records
Name GatorLink Phone College
Graff rgraff 392-3900 Pharmacy
Harris bharris 392-5555 Medicine
Ipswich zipswich 846-5656 PHHP
KEY FIELD: A field of a database (typically a
relational database ) table which together form
a unique identifier for a record (a table entry).
The aggregate of these fields is usually referred
to simply as "the key ".
PRIMARY KEY
Faculty of Faculty of
Civil Engineering Architectural
Disadvantages
Links are only possible in Vertical Direction (from top to
bottom) but not for horizontal or diagonal unless they
have same parents.
For example, it is hard to find what is the relation
between URP and DCE from this data model.
2. NETWORK DATABASE MODEL
• Doesn’t force data into hierarchical levels
• Owner/Member relationships:
– Owner record type
– Member record type
• Each owner may have one or more member types
• Each member type and corresponding owner record
type form set, which represents relationship
Network Database Model
Network Database Model
• Each record can have multiple parents
– Composed of sets - relationships
– Each set has owner record and member record
– Member may have several owners
– A set represents a 1:M relationship between the
owner and the member
Figure 1.10
3. RELATIONAL MODEL
Student Table
Student Name CourseID
• Based on two important ID
concepts:
1 Mr. X 001
Figure 1.11
WHAT IS QUERY LANGUAGE?
• Query language (QL) refers to any computer
programming language that requests and
retrieves data from database and information
systems by sending queries.
WHAT IS QUERY ?
A query is a request for information from a
database.
SQL
What is it?
Structured Query Language
• Used in ORACLE and other DB systems
• Non-procedural - i.e. Specify what you want not how
to get it
• SQL - (also pronounced SEQUEL)
directly related to the development of the
RELATIONAL MODEL by E.F.Codd.
SQL
• SQL is used to perform query in relations databases.
• The answer is :
Mr. X 6
Find the relationship between this two
tables in the BUET Library
Book Table
Disadvantages
Require a number of tables and relationship
Its difficult to add a new column in the table.
4. OBJECT DATABASES
• Current generation systems have a need to handle complex
data for complex applications such as
– computer aided design
– computer aided software engineering
– geographic information systems
– interactive web sites
BUET
Part of
Part of
Departments Institutes
Is a Is a Is a
Is a = Inheritance
Attributes: Faculty, Staff, Students
Part of = association
OBJECT ORIENTED DATABASE
• An Object Oriented model uses functions to model spatial and non-
spatial relationships of geographic objects and the attributes.