SlideShare a Scribd company logo
1 of 37
Download to read offline
DATABASE MANAGEMENT SYSTEM
INTRODUCTION TO DATABASES
A database is a collection of data organized to serve many
application. By using centralized data it can easily be accessed,
managed, and updated.
And a DATABASE MANAGEMENT SYSTEM (DBMS) is a collection
of programs that enables you to store, modify, and extract
information from a database.
ADVANTAGES OF USING A DATABASE APPROACH
• Flexible Data Access.
• Improved Data Integrity (purity,).
• Improved Data Security.
• Data Independence.
• Reduced Data Redundancy (excess).
• Ability to Share and Relate Data
• Standardisation of Data.
• Increased Productivity.
DBMS and Its Applications:
A DATABASE MANAGEMENT SYSTEM (DBMS) is a
computerized record-keeping system. It is a repository or a
container for collection of computerized data files.
Application are as follows:
– Banking
– Airlines
– Universities
– Manufacturing and selling
– Human resources
– Railway reservation system
– Library management system
– Social media sites
– Telecommunications
– Online shopping
– Human resource management
ELEMENT OF DATABASE
FIELDS: A field is part of a record and contains a
single piece of data for the subject of the record.
In the database table illustrated in Figure 4, each
record contains four fields:
RECORDS: Data is stored in records. A record is
composed of fields and contains all the data
about one particular person, company, or item
in a database. In this database, a record contains
the data for one customer support incident
report. Records appear as rows in the database
table. A record for Log ID 1201242 is highlighted
in Below mentioned Figure.
TABLES: A database table is composed of
records and fields that hold data. Tables are also
called datasheets. Each table in a database holds
data about a different, but related, subject.
An Example of a Table
Records
Fields
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
• The column or set of columns that provide the
uniqueness for the row.
• A table can have only one primary key.
• Existing values in primary key columns may not be
modified (insert new value and then delete old
value)
• The table of a relationship containing the primary key
is called the Parent Table.
FOREIGN KEYS
• A primary key referenced from another table is
called a foreign key
• For each foreign key value, there must be a row in
a table whose primary key has the same value.
• The foreign key can be made up of one or more
columns of a table but must match the primary
key it is referencing
• A table can have any number of foreign keys.
PRIMARY KEYS & FOREIGN KEYS
Name User Phone College
Graff rgraff 392-3900 Pharmacy
Harris bharris 392-5555 Medicine
Ipswich zipswich 846-5656 PHHP
To ensure that each record is unique in each
table, we can set one field to be a Primary Key
field.
A Primary Key is a field that that will contain
no duplicates and no blank values.
Foreign Keys link to data in other tables
DATA MODELS
1. HIERARCHICAL
2. NETWORK
3. RELATIONAL
4. OBJECT
1. HIERARCHICAL MODEL
Stores data as hierarchically related to each
other. Record shape are tree structure.
BUET
Faculty of
Civil Engineering
Faculty of
Architectural
CE WRE URP Archit.
HIERARCHICAL DATABASE MODEL
HIERARCHICAL DATABASE MODEL
• Logically represented by an upside down
tree
– Each parent can have many children
– Each child has only one parent
HIERARCHICAL MODEL
• Several records or files are hierarchically related with each
other. For example, an organization has several departments,
each of which has attributes such as name of director, number
of staffs, annual products etc.
• Each department has several divisions with attributes of name
of manager, number of staffs, annual products etc.
• Then each division has several sections with attributes such as
name of head, number of staff, number of PCs etc.
Advantage and Disadvantages of
Hierarchical Model
 Advantages
 High speed access to large databases
 Easy to update- (to add or delete new nodes)
 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
• Based on two important
concepts:
– Key of relation - one to
one, one to many, many to
many
– Primary attribute – which
can’t be duplicate
Student
ID
Name CourseID
1 Mr. X 001
2 Mr. X 002
3 Mr. Y 003
Cour
seID
Title Cre
dit
001 RS & GIS in WM 3
002 Watershed Hydrology 3
003 Risk Management 3
Course table
Student Table
Student Table Course Table
* *
Many to many relationship
WHAT IS A RELATIONAL DATABASE?
• A database is more than just a collection of
information. Such as student and course information,
faculty and grades.
• A database is a representation of the people and
things your business needs to operate, and the way
those people and things relate to each other.
• A database system supports the business rules
defined by the customer.
RELATIONSHIP TYPES
1. One-to-One : relationship is single valued in both directions. A
manager manages one department; a department has only
one manager.
2. One-to-Many : relationship is multi-valued in one direction -
one row in the parent table is associated with many rows in
the dependent table. One department has many employees.
3. Many-to-Many : relationships are multi-valued in both
directions. This type of relationship can be expressed in a
table with a column for each entity. (crosswalk table) - An
employee can work on more than one project, and a project
can have more than one employee assigned. Employee,
Project, and Employee/Project tables.
Relational Database Model
Relational Database Model
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.
• For example, find the name of the student who took
more than or equal to 6 credit hour in this term
SELECT Student.Name, Course.Credit
FROM Student, Course
WHERE Student.CourseID = Course.CourseID
AND Credit >= 6
• The answer is :
Mr. X 6
Find the relationship between this two
tables in the BUET Library
ISBN Title Author
050 Applied
Hydrology
David
Maidmen
060 Irrigation Cheng
ID Name ISBN
1 Mr. P 050
2 Mr. Q 060
3 Mr. R 070
Book Table
Borrow Table
One to one
Many to Many
One to Many
?
Advantage of Relational Database
 Advantages
 there is no redundancy.
 type of building of an owner can be changed without destroying the
relation between type and rate.
 a new type of building for example "Clay" can be inserted. (row insert
is easy).
 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
• Relational systems are inadequate for these systems
– Why do you think this is?
Object Database Types
• Object-oriented
– extend a programming language such as Java with
persistency and a query language
• Object-relational
– extend a current RDBMS (e.g. Oracle) with object-
oriented extensions
Object Oriented Model
BUET
Departments Institutes
CE
WRE
DCE IWFM
URP AIT
Faculty, Staff, Students
Attributes:
Is a Is a Is a
Is a = Inheritance
Part of = association
Part of
Part of
OBJECT ORIENTED DATABASE
• An Object Oriented model uses functions to model spatial and non-
spatial relationships of geographic objects and the attributes.
• An object is an encapsulated unit which is characterized by attributes,
a set of orientations and rules. An object oriented model has the
following characteristics.
• GENERIC PROPERTIES : there should be an inheritance relationship.
• ABSTRACTION : objects, classes and super classes are to be generated
by classification, generalization, association and aggregation.
• ADHOC QUERIES : users can order spatial operations to obtain spatial
relationships of geographic objects using a special language.

More Related Content

What's hot (20)

Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Database management system
Database management system Database management system
Database management system
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Relational database
Relational database Relational database
Relational database
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Dbms
DbmsDbms
Dbms
 

Similar to DATABASE MANAGEMENT SYSTEM

Info systems databases
Info systems databasesInfo systems databases
Info systems databasesMR Z
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Dios Kurniawan
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data modelsABDUL KHALIQ
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdfTOUSEEQHAIDER14
 
dbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodungadbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodungaVaradKadtan1
 
Lec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemsLec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemssamiullahamjad06
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptxSumit Kumar
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 

Similar to DATABASE MANAGEMENT SYSTEM (20)

Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 
DBMS
DBMS DBMS
DBMS
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data models
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
dbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodungadbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodunga
 
Database Management Systems.pptx
Database Management Systems.pptxDatabase Management Systems.pptx
Database Management Systems.pptx
 
Lec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemsLec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systems
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
 
Database systems introduction
Database systems introductionDatabase systems introduction
Database systems introduction
 
lecture5 (1) (2).pptx
lecture5 (1) (2).pptxlecture5 (1) (2).pptx
lecture5 (1) (2).pptx
 
Database_Introduction.pdf
Database_Introduction.pdfDatabase_Introduction.pdf
Database_Introduction.pdf
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 

More from Mahmud Hasan Tanvir

More from Mahmud Hasan Tanvir (16)

ANALOG-TO-DIGITAL CONVERSION
ANALOG-TO-DIGITAL CONVERSIONANALOG-TO-DIGITAL CONVERSION
ANALOG-TO-DIGITAL CONVERSION
 
Cybercrime
CybercrimeCybercrime
Cybercrime
 
COMPUTER VIRUSES AND WORMS.pdf
COMPUTER VIRUSES AND WORMS.pdfCOMPUTER VIRUSES AND WORMS.pdf
COMPUTER VIRUSES AND WORMS.pdf
 
Computer Fundamental
Computer FundamentalComputer Fundamental
Computer Fundamental
 
Chemistry Fundamentals
Chemistry FundamentalsChemistry Fundamentals
Chemistry Fundamentals
 
C++ QNA
C++ QNAC++ QNA
C++ QNA
 
Attributes in Entity-Relationship Model
Attributes in Entity-Relationship ModelAttributes in Entity-Relationship Model
Attributes in Entity-Relationship Model
 
Applications of Radioisotopes.pdf
Applications of Radioisotopes.pdfApplications of Radioisotopes.pdf
Applications of Radioisotopes.pdf
 
Arithmetic Expression
Arithmetic ExpressionArithmetic Expression
Arithmetic Expression
 
FOUR DIFFERENT TYPES OF WRITING STYLES
FOUR DIFFERENT TYPES OF WRITING STYLESFOUR DIFFERENT TYPES OF WRITING STYLES
FOUR DIFFERENT TYPES OF WRITING STYLES
 
Fable.docx
Fable.docxFable.docx
Fable.docx
 
Basic C Programming Lab Practice
Basic C Programming Lab PracticeBasic C Programming Lab Practice
Basic C Programming Lab Practice
 
Rape in Rural Bangladesh.pdf
Rape in Rural Bangladesh.pdfRape in Rural Bangladesh.pdf
Rape in Rural Bangladesh.pdf
 
First Law Of Thermodynamics.pdf
First Law Of Thermodynamics.pdfFirst Law Of Thermodynamics.pdf
First Law Of Thermodynamics.pdf
 
Difference between a variable and a constant.pdf
Difference between a variable and a constant.pdfDifference between a variable and a constant.pdf
Difference between a variable and a constant.pdf
 
Defects In Image Formation By Lenses.pdf
Defects In Image Formation By Lenses.pdfDefects In Image Formation By Lenses.pdf
Defects In Image Formation By Lenses.pdf
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

DATABASE MANAGEMENT SYSTEM

  • 2. INTRODUCTION TO DATABASES A database is a collection of data organized to serve many application. By using centralized data it can easily be accessed, managed, and updated. And a DATABASE MANAGEMENT SYSTEM (DBMS) is a collection of programs that enables you to store, modify, and extract information from a database.
  • 3. ADVANTAGES OF USING A DATABASE APPROACH • Flexible Data Access. • Improved Data Integrity (purity,). • Improved Data Security. • Data Independence. • Reduced Data Redundancy (excess). • Ability to Share and Relate Data • Standardisation of Data. • Increased Productivity.
  • 4.
  • 5. DBMS and Its Applications: A DATABASE MANAGEMENT SYSTEM (DBMS) is a computerized record-keeping system. It is a repository or a container for collection of computerized data files. Application are as follows: – Banking – Airlines – Universities – Manufacturing and selling – Human resources – Railway reservation system – Library management system – Social media sites – Telecommunications – Online shopping – Human resource management
  • 6. ELEMENT OF DATABASE FIELDS: A field is part of a record and contains a single piece of data for the subject of the record. In the database table illustrated in Figure 4, each record contains four fields:
  • 7. RECORDS: Data is stored in records. A record is composed of fields and contains all the data about one particular person, company, or item in a database. In this database, a record contains the data for one customer support incident report. Records appear as rows in the database table. A record for Log ID 1201242 is highlighted in Below mentioned Figure.
  • 8. TABLES: A database table is composed of records and fields that hold data. Tables are also called datasheets. Each table in a database holds data about a different, but related, subject.
  • 9. An Example of a Table Records Fields Name GatorLink Phone College Graff rgraff 392-3900 Pharmacy Harris bharris 392-5555 Medicine Ipswich zipswich 846-5656 PHHP
  • 10. 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 ".
  • 11. PRIMARY KEY • The column or set of columns that provide the uniqueness for the row. • A table can have only one primary key. • Existing values in primary key columns may not be modified (insert new value and then delete old value) • The table of a relationship containing the primary key is called the Parent Table.
  • 12. FOREIGN KEYS • A primary key referenced from another table is called a foreign key • For each foreign key value, there must be a row in a table whose primary key has the same value. • The foreign key can be made up of one or more columns of a table but must match the primary key it is referencing • A table can have any number of foreign keys.
  • 13. PRIMARY KEYS & FOREIGN KEYS Name User Phone College Graff rgraff 392-3900 Pharmacy Harris bharris 392-5555 Medicine Ipswich zipswich 846-5656 PHHP To ensure that each record is unique in each table, we can set one field to be a Primary Key field. A Primary Key is a field that that will contain no duplicates and no blank values. Foreign Keys link to data in other tables
  • 14. DATA MODELS 1. HIERARCHICAL 2. NETWORK 3. RELATIONAL 4. OBJECT
  • 15. 1. HIERARCHICAL MODEL Stores data as hierarchically related to each other. Record shape are tree structure. BUET Faculty of Civil Engineering Faculty of Architectural CE WRE URP Archit.
  • 17. HIERARCHICAL DATABASE MODEL • Logically represented by an upside down tree – Each parent can have many children – Each child has only one parent
  • 18. HIERARCHICAL MODEL • Several records or files are hierarchically related with each other. For example, an organization has several departments, each of which has attributes such as name of director, number of staffs, annual products etc. • Each department has several divisions with attributes of name of manager, number of staffs, annual products etc. • Then each division has several sections with attributes such as name of head, number of staff, number of PCs etc.
  • 19. Advantage and Disadvantages of Hierarchical Model  Advantages  High speed access to large databases  Easy to update- (to add or delete new nodes)  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.
  • 20. 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
  • 22. 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
  • 23. 3. RELATIONAL MODEL • Based on two important concepts: – Key of relation - one to one, one to many, many to many – Primary attribute – which can’t be duplicate Student ID Name CourseID 1 Mr. X 001 2 Mr. X 002 3 Mr. Y 003 Cour seID Title Cre dit 001 RS & GIS in WM 3 002 Watershed Hydrology 3 003 Risk Management 3 Course table Student Table Student Table Course Table * * Many to many relationship
  • 24. WHAT IS A RELATIONAL DATABASE? • A database is more than just a collection of information. Such as student and course information, faculty and grades. • A database is a representation of the people and things your business needs to operate, and the way those people and things relate to each other. • A database system supports the business rules defined by the customer.
  • 25. RELATIONSHIP TYPES 1. One-to-One : relationship is single valued in both directions. A manager manages one department; a department has only one manager. 2. One-to-Many : relationship is multi-valued in one direction - one row in the parent table is associated with many rows in the dependent table. One department has many employees. 3. Many-to-Many : relationships are multi-valued in both directions. This type of relationship can be expressed in a table with a column for each entity. (crosswalk table) - An employee can work on more than one project, and a project can have more than one employee assigned. Employee, Project, and Employee/Project tables.
  • 28. 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.
  • 29. WHAT IS QUERY ? A query is a request for information from a database.
  • 30. 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.
  • 31. SQL • SQL is used to perform query in relations databases. • For example, find the name of the student who took more than or equal to 6 credit hour in this term SELECT Student.Name, Course.Credit FROM Student, Course WHERE Student.CourseID = Course.CourseID AND Credit >= 6 • The answer is : Mr. X 6
  • 32. Find the relationship between this two tables in the BUET Library ISBN Title Author 050 Applied Hydrology David Maidmen 060 Irrigation Cheng ID Name ISBN 1 Mr. P 050 2 Mr. Q 060 3 Mr. R 070 Book Table Borrow Table One to one Many to Many One to Many ?
  • 33. Advantage of Relational Database  Advantages  there is no redundancy.  type of building of an owner can be changed without destroying the relation between type and rate.  a new type of building for example "Clay" can be inserted. (row insert is easy).  Disadvantages  Require a number of tables and relationship  Its difficult to add a new column in the table.
  • 34. 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 • Relational systems are inadequate for these systems – Why do you think this is?
  • 35. Object Database Types • Object-oriented – extend a programming language such as Java with persistency and a query language • Object-relational – extend a current RDBMS (e.g. Oracle) with object- oriented extensions
  • 36. Object Oriented Model BUET Departments Institutes CE WRE DCE IWFM URP AIT Faculty, Staff, Students Attributes: Is a Is a Is a Is a = Inheritance Part of = association Part of Part of
  • 37. OBJECT ORIENTED DATABASE • An Object Oriented model uses functions to model spatial and non- spatial relationships of geographic objects and the attributes. • An object is an encapsulated unit which is characterized by attributes, a set of orientations and rules. An object oriented model has the following characteristics. • GENERIC PROPERTIES : there should be an inheritance relationship. • ABSTRACTION : objects, classes and super classes are to be generated by classification, generalization, association and aggregation. • ADHOC QUERIES : users can order spatial operations to obtain spatial relationships of geographic objects using a special language.