SlideShare a Scribd company logo
INTRODUCTION TO
DATABASE
Introduction
◦ DBMS stands for Database Management System.
◦ We can break it like this DBMS = Database + Management System.
◦ Database is a collection of data and Management System is a set of programs to store and retrieve
those data.
◦ Based on this we can define DBMS like this: DBMS is a collection of inter-related data and set
of programs to store & access those data in an easy and effective manner.
Tables
◦ A table is a collection of data elements organized in terms of rows and columns.
◦ A table is also considered as a convenient representation of relations. But a table can have
duplicate row of data while a true relation cannot have duplicate data. Table is the most
simplest form of data storage.
◦ Example of an Employee table.
ID Name Age Salary
1 Adam 34 13000
2 Alex 28 15000
3 Stuart 20 18000
4 Ross 42 19020
Entity
◦ Entity is a person, place, thing or event that we want to store information about.
◦ Example: Employee is an entity.
ID Name Age Salary
1 Adam 34 13000
2 Alex 28 15000
3 Stuart 20 18000
4 Ross 42 19020
Records/Row/Tuple
◦ A single entry in a table is called a Tuple or Record or Row.
◦ A tuple in a table represents a set of related data. For example, the above Employee table has 4
tuples/records/rows.
ID Name Age Salary
1 Adam 34 13000
2 Alex 28 15000
3 Stuart 20 18000
4 Ross 42 19020
Employee table has 4
tuples/records/rows
Attributes
◦ A table consists of several records(row), each record can be broken down into several smaller
parts of data known as Attributes.
ID Name Age Salary
1 Adam 34 13000
2 Alex 28 15000
3 Stuart 20 18000
4 Ross 42 19020
Employee table consist of four
attributes, ID, Name, Age and Salary.
Keys
◦ Keys are used to uniquely identify any record or row of data from the table.
◦ For example: In Student table, ID is used as a key because it is unique for each student. In
PERSON table, passport_number, license_number, SSN are keys since they are unique for each
person.
Types of Keys
Primary key
◦ It is the first key which is used to identify one and only one instance of an entity uniquely.
◦ An entity can contain multiple keys as we saw in PERSON table. The key which is most suitable
from those lists become a primary key.
Multiple unique keys
Candidate Key
◦ A candidate key is an attribute or set of an attribute which can uniquely identify a tuple.
◦ The remaining attributes except for primary key are considered as a candidate key.
Candidate key
Super Key
◦ Super key is a set of an attribute which can uniquely identify a tuple. Super key is a superset of a
candidate key.
◦ For example: In the below EMPLOYEE table, for(EMPLOEE_ID, EMPLOYEE_NAME) the name of
two employees can be the same, but their EMPLYEE_ID can't be the same. Hence, this
combination can also be a key.
Super key
Foreign key
◦ Foreign keys are the column of the table which is used to point to the primary key of another
table.
◦ We add the primary key of the DEPARTMENT table, Department_Id as a new attribute in the
EMPLOYEE table.
◦ Now in the EMPLOYEE table, Department_Id is the foreign key, and both the tables are related.
Integrity Constraints
◦ Integrity constraints are a set of rules. It is used to maintain the quality of information.
◦ Integrity constraints ensure that the data insertion, updating, and other processes have to be
performed in such a way that data integrity is not affected.
Domain constraints
◦ Domain constraints can be defined as the definition of a valid set of values for an attribute.
◦ The data type of domain includes string, character, integer, time, date, currency, etc. The value
of the attribute must be available in the corresponding domain.
◦ Example:
Entity integrity constraints
◦ The entity integrity constraint states that primary key value can't be null.
◦ This is because the primary key value is used to identify individual rows in relation and if the
primary key has a null value, then we can't identify those rows.
◦ A table can contain a null value other than the primary key field.
◦ Example:
Referential Integrity Constraints
◦ A referential integrity constraint is specified between two tables.
◦ In the Referential integrity constraints, if a foreign key in Table 1 refers to the Primary Key of
Table 2, then every value of the Foreign Key in Table 1 must be null or be available in Table 2.
Key constraints
◦ Keys are the entity set that is used to identify an entity within its entity set uniquely.
◦ An entity set can have multiple keys, but out of which one key will be the primary key. A primary
key can contain a unique and null value in the relational table.
Schema Architecture
◦ This framework is used to describe the structure of a specific database system.
◦ The three schema architecture is also used to separate the user applications and physical
database.
◦ The three schema architecture contains three-levels. It breaks the database down into three
different categories.
Internal Level
◦ The internal level has an internal schema which describes the physical storage structure of the
database.
◦ The internal schema is also known as a physical schema.
◦ It uses the physical data model. It is used to define that how the data will be stored in a block.
◦ The physical level is used to describe complex low-level data structures in detail.
Conceptual Level
◦ The conceptual schema describes the design of a database at the conceptual level. Conceptual
level is also known as logical level.
◦ The conceptual schema describes the structure of the whole database.
◦ The conceptual level describes what data are to be stored in the database and also describes
what relationship exists among those data.
◦ In the conceptual level, internal details such as an implementation of the data structure are
hidden.
◦ Programmers and database administrators work at this level.
External Level
◦ At the external level, a database contains several schemas that sometimes called as subschema.
The subschema is used to describe the different view of the database.
◦ An external schema is also known as view schema.
◦ Each view schema describes the database part that a particular user group is interested and
hides the remaining database from that user group.
◦ The view schema describes the end user interaction with database systems.
Data Independence
◦ Data independence can be explained using the three-schema architecture.
◦ Data independence refers characteristic of being able to modify the schema at one level of the
database system without altering the schema at the next higher level.
Logical Data Independence
◦ Logical data independence refers characteristic of being able to change the conceptual schema
without having to change the external schema.
◦ Logical data independence is used to separate the external level from the conceptual view.
◦ If we do any changes in the conceptual view of the data, then the user view of the data would
not be affected.
◦ Logical data independence occurs at the user interface level.
Physical Data Independence
◦ Physical data independence can be defined as the capacity to change the internal schema
without having to change the conceptual schema.
◦ If we do any changes in the storage size of the database system server, then the Conceptual
structure of the database will not be affected.
◦ Physical data independence is used to separate conceptual levels from the internal levels.
◦ Physical data independence occurs at the logical interface level.
Need for using DBMS
◦ Processing Queries
◦ Controlling redundancy and inconsistency
◦ Efficient memory management and indexing
◦ Concurrency control and transaction management
◦ Access control and ease in accessing data
◦ Integrity constraints
Ad

More Related Content

What's hot (20)

Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
 
Dbms schema & instance
Dbms schema & instanceDbms schema & instance
Dbms schema & instance
Papan Sarkar
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
Praveen M Jigajinni
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
Bhandari Nawaraj
 
Dbms database models
Dbms database modelsDbms database models
Dbms database models
sanjeev kumar suman
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
Ravinder Kamboj
 
Data models
Data modelsData models
Data models
Usman Tariq
 
Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Dbms
DbmsDbms
Dbms
sevtap87
 
Intro to dbms
Intro to dbmsIntro to dbms
Intro to dbms
Surkhab Shelly
 
Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
Megha yadav
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
rahul kapoliya
 
Files Vs DataBase
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
Dr. C.V. Suresh Babu
 
Schema
SchemaSchema
Schema
Pragya Srivastava
 
Advantages and disadvantages of DBMS
Advantages and disadvantages of DBMSAdvantages and disadvantages of DBMS
Advantages and disadvantages of DBMS
Mohit Singhal
 
Key and its different types
Key and its different typesKey and its different types
Key and its different types
Umair Shakir
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
Amiya9439793168
 
Relational model
Relational modelRelational model
Relational model
Dabbal Singh Mahara
 

Similar to Introduction to database (20)

Unit 2 DBMS.pptx
Unit 2 DBMS.pptxUnit 2 DBMS.pptx
Unit 2 DBMS.pptx
ssuserc8e1481
 
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEMRELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
saranyaksr92
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
SelshaCs
 
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTRRDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
anuraggautam9792
 
Chapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdfChapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdf
Getnet Tigabie Askale -(GM)
 
Database Concepts.pptx
Database Concepts.pptxDatabase Concepts.pptx
Database Concepts.pptx
DhruvSavaliya9
 
DATABASE-1.pptx
DATABASE-1.pptxDATABASE-1.pptx
DATABASE-1.pptx
ManasRanjanRana4
 
Dbms Basics
Dbms BasicsDbms Basics
Dbms Basics
DR. Ram Kumar Pathak
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
milanmehta7
 
DATABASE DESIGN.pptx
DATABASE DESIGN.pptxDATABASE DESIGN.pptx
DATABASE DESIGN.pptx
SaranCreations
 
ans_dbms.pdf
ans_dbms.pdfans_dbms.pdf
ans_dbms.pdf
SandipPradhan23
 
Dbms important questions and answers
Dbms important questions and answersDbms important questions and answers
Dbms important questions and answers
LakshmiSarvani6
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
SwatiJain303
 
DBMS (1).pptx
DBMS (1).pptxDBMS (1).pptx
DBMS (1).pptx
AbhijeetKumar422631
 
ER Digramms by Harshal wagh
ER Digramms by Harshal waghER Digramms by Harshal wagh
ER Digramms by Harshal wagh
harshalkwagh999
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
traderbear1
 
Chapter 02.pdf databse schema architecture
Chapter 02.pdf databse schema architectureChapter 02.pdf databse schema architecture
Chapter 02.pdf databse schema architecture
AyeshaaShafaqat
 
RDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship DiagramRDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
Database Intermediate First Session- 23 July.pptx
Database Intermediate First Session- 23 July.pptxDatabase Intermediate First Session- 23 July.pptx
Database Intermediate First Session- 23 July.pptx
Natasha251057
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEMRELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
saranyaksr92
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
SelshaCs
 
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTRRDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
RDBMS NOTES 1.pdf BWSBFDGFEDRHHYGTRFEDCWXSDFRGTHYUJ7IK89O8IJUY7HGTR
anuraggautam9792
 
Database Concepts.pptx
Database Concepts.pptxDatabase Concepts.pptx
Database Concepts.pptx
DhruvSavaliya9
 
Dbms important questions and answers
Dbms important questions and answersDbms important questions and answers
Dbms important questions and answers
LakshmiSarvani6
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
SwatiJain303
 
ER Digramms by Harshal wagh
ER Digramms by Harshal waghER Digramms by Harshal wagh
ER Digramms by Harshal wagh
harshalkwagh999
 
Chapter 02.pdf databse schema architecture
Chapter 02.pdf databse schema architectureChapter 02.pdf databse schema architecture
Chapter 02.pdf databse schema architecture
AyeshaaShafaqat
 
RDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship DiagramRDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
Database Intermediate First Session- 23 July.pptx
Database Intermediate First Session- 23 July.pptxDatabase Intermediate First Session- 23 July.pptx
Database Intermediate First Session- 23 July.pptx
Natasha251057
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
Ad

More from Pradnya Saval (20)

Erp implementation and lifecycle
Erp implementation and lifecycleErp implementation and lifecycle
Erp implementation and lifecycle
Pradnya Saval
 
Electronic customer relationship management (e crm)
Electronic customer relationship management (e crm)Electronic customer relationship management (e crm)
Electronic customer relationship management (e crm)
Pradnya Saval
 
Data warehouse and data mining
Data warehouse and data miningData warehouse and data mining
Data warehouse and data mining
Pradnya Saval
 
Concepts of erp
Concepts of erpConcepts of erp
Concepts of erp
Pradnya Saval
 
Understanding major functional systems
Understanding major functional systemsUnderstanding major functional systems
Understanding major functional systems
Pradnya Saval
 
Supply chain management (scm)
Supply chain management (scm)Supply chain management (scm)
Supply chain management (scm)
Pradnya Saval
 
Knowledge process outsourcing
Knowledge process outsourcingKnowledge process outsourcing
Knowledge process outsourcing
Pradnya Saval
 
Erp softwares
Erp softwaresErp softwares
Erp softwares
Pradnya Saval
 
Deep Learning - RNN and CNN
Deep Learning - RNN and CNNDeep Learning - RNN and CNN
Deep Learning - RNN and CNN
Pradnya Saval
 
Integrated services - IntServ
Integrated services - IntServIntegrated services - IntServ
Integrated services - IntServ
Pradnya Saval
 
WAN Technology - ATM
WAN Technology - ATMWAN Technology - ATM
WAN Technology - ATM
Pradnya Saval
 
Data Communication and Optical Network
Data Communication and Optical Network Data Communication and Optical Network
Data Communication and Optical Network
Pradnya Saval
 
WAN Technology : ATM - Forouzan
WAN Technology : ATM - ForouzanWAN Technology : ATM - Forouzan
WAN Technology : ATM - Forouzan
Pradnya Saval
 
Data Communications and Optical Network - Forouzan
Data Communications and Optical Network - ForouzanData Communications and Optical Network - Forouzan
Data Communications and Optical Network - Forouzan
Pradnya Saval
 
Integrated services and RSVP - Protocol
Integrated services and RSVP - ProtocolIntegrated services and RSVP - Protocol
Integrated services and RSVP - Protocol
Pradnya Saval
 
Differentiated services - Advance Routing
Differentiated services - Advance RoutingDifferentiated services - Advance Routing
Differentiated services - Advance Routing
Pradnya Saval
 
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 ProtocolProtocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Pradnya Saval
 
Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Protocols and Interfaces - IPv4, IPv6, X.25, X.75Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Pradnya Saval
 
X.75 Internetworking protocol
X.75 Internetworking protocolX.75 Internetworking protocol
X.75 Internetworking protocol
Pradnya Saval
 
Theory of operations - Mature Packet Switching Protocols
Theory of operations - Mature Packet Switching ProtocolsTheory of operations - Mature Packet Switching Protocols
Theory of operations - Mature Packet Switching Protocols
Pradnya Saval
 
Erp implementation and lifecycle
Erp implementation and lifecycleErp implementation and lifecycle
Erp implementation and lifecycle
Pradnya Saval
 
Electronic customer relationship management (e crm)
Electronic customer relationship management (e crm)Electronic customer relationship management (e crm)
Electronic customer relationship management (e crm)
Pradnya Saval
 
Data warehouse and data mining
Data warehouse and data miningData warehouse and data mining
Data warehouse and data mining
Pradnya Saval
 
Understanding major functional systems
Understanding major functional systemsUnderstanding major functional systems
Understanding major functional systems
Pradnya Saval
 
Supply chain management (scm)
Supply chain management (scm)Supply chain management (scm)
Supply chain management (scm)
Pradnya Saval
 
Knowledge process outsourcing
Knowledge process outsourcingKnowledge process outsourcing
Knowledge process outsourcing
Pradnya Saval
 
Deep Learning - RNN and CNN
Deep Learning - RNN and CNNDeep Learning - RNN and CNN
Deep Learning - RNN and CNN
Pradnya Saval
 
Integrated services - IntServ
Integrated services - IntServIntegrated services - IntServ
Integrated services - IntServ
Pradnya Saval
 
WAN Technology - ATM
WAN Technology - ATMWAN Technology - ATM
WAN Technology - ATM
Pradnya Saval
 
Data Communication and Optical Network
Data Communication and Optical Network Data Communication and Optical Network
Data Communication and Optical Network
Pradnya Saval
 
WAN Technology : ATM - Forouzan
WAN Technology : ATM - ForouzanWAN Technology : ATM - Forouzan
WAN Technology : ATM - Forouzan
Pradnya Saval
 
Data Communications and Optical Network - Forouzan
Data Communications and Optical Network - ForouzanData Communications and Optical Network - Forouzan
Data Communications and Optical Network - Forouzan
Pradnya Saval
 
Integrated services and RSVP - Protocol
Integrated services and RSVP - ProtocolIntegrated services and RSVP - Protocol
Integrated services and RSVP - Protocol
Pradnya Saval
 
Differentiated services - Advance Routing
Differentiated services - Advance RoutingDifferentiated services - Advance Routing
Differentiated services - Advance Routing
Pradnya Saval
 
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 ProtocolProtocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Protocol and Interfaces - IPv4, IPv6, X.25 Protocol, X.75 Protocol
Pradnya Saval
 
Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Protocols and Interfaces - IPv4, IPv6, X.25, X.75Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Protocols and Interfaces - IPv4, IPv6, X.25, X.75
Pradnya Saval
 
X.75 Internetworking protocol
X.75 Internetworking protocolX.75 Internetworking protocol
X.75 Internetworking protocol
Pradnya Saval
 
Theory of operations - Mature Packet Switching Protocols
Theory of operations - Mature Packet Switching ProtocolsTheory of operations - Mature Packet Switching Protocols
Theory of operations - Mature Packet Switching Protocols
Pradnya Saval
 
Ad

Recently uploaded (20)

Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 

Introduction to database

  • 2. Introduction ◦ DBMS stands for Database Management System. ◦ We can break it like this DBMS = Database + Management System. ◦ Database is a collection of data and Management System is a set of programs to store and retrieve those data. ◦ Based on this we can define DBMS like this: DBMS is a collection of inter-related data and set of programs to store & access those data in an easy and effective manner.
  • 3. Tables ◦ A table is a collection of data elements organized in terms of rows and columns. ◦ A table is also considered as a convenient representation of relations. But a table can have duplicate row of data while a true relation cannot have duplicate data. Table is the most simplest form of data storage. ◦ Example of an Employee table. ID Name Age Salary 1 Adam 34 13000 2 Alex 28 15000 3 Stuart 20 18000 4 Ross 42 19020
  • 4. Entity ◦ Entity is a person, place, thing or event that we want to store information about. ◦ Example: Employee is an entity. ID Name Age Salary 1 Adam 34 13000 2 Alex 28 15000 3 Stuart 20 18000 4 Ross 42 19020
  • 5. Records/Row/Tuple ◦ A single entry in a table is called a Tuple or Record or Row. ◦ A tuple in a table represents a set of related data. For example, the above Employee table has 4 tuples/records/rows. ID Name Age Salary 1 Adam 34 13000 2 Alex 28 15000 3 Stuart 20 18000 4 Ross 42 19020 Employee table has 4 tuples/records/rows
  • 6. Attributes ◦ A table consists of several records(row), each record can be broken down into several smaller parts of data known as Attributes. ID Name Age Salary 1 Adam 34 13000 2 Alex 28 15000 3 Stuart 20 18000 4 Ross 42 19020 Employee table consist of four attributes, ID, Name, Age and Salary.
  • 7. Keys ◦ Keys are used to uniquely identify any record or row of data from the table. ◦ For example: In Student table, ID is used as a key because it is unique for each student. In PERSON table, passport_number, license_number, SSN are keys since they are unique for each person.
  • 9. Primary key ◦ It is the first key which is used to identify one and only one instance of an entity uniquely. ◦ An entity can contain multiple keys as we saw in PERSON table. The key which is most suitable from those lists become a primary key. Multiple unique keys
  • 10. Candidate Key ◦ A candidate key is an attribute or set of an attribute which can uniquely identify a tuple. ◦ The remaining attributes except for primary key are considered as a candidate key. Candidate key
  • 11. Super Key ◦ Super key is a set of an attribute which can uniquely identify a tuple. Super key is a superset of a candidate key. ◦ For example: In the below EMPLOYEE table, for(EMPLOEE_ID, EMPLOYEE_NAME) the name of two employees can be the same, but their EMPLYEE_ID can't be the same. Hence, this combination can also be a key. Super key
  • 12. Foreign key ◦ Foreign keys are the column of the table which is used to point to the primary key of another table. ◦ We add the primary key of the DEPARTMENT table, Department_Id as a new attribute in the EMPLOYEE table. ◦ Now in the EMPLOYEE table, Department_Id is the foreign key, and both the tables are related.
  • 13. Integrity Constraints ◦ Integrity constraints are a set of rules. It is used to maintain the quality of information. ◦ Integrity constraints ensure that the data insertion, updating, and other processes have to be performed in such a way that data integrity is not affected.
  • 14. Domain constraints ◦ Domain constraints can be defined as the definition of a valid set of values for an attribute. ◦ The data type of domain includes string, character, integer, time, date, currency, etc. The value of the attribute must be available in the corresponding domain. ◦ Example:
  • 15. Entity integrity constraints ◦ The entity integrity constraint states that primary key value can't be null. ◦ This is because the primary key value is used to identify individual rows in relation and if the primary key has a null value, then we can't identify those rows. ◦ A table can contain a null value other than the primary key field. ◦ Example:
  • 16. Referential Integrity Constraints ◦ A referential integrity constraint is specified between two tables. ◦ In the Referential integrity constraints, if a foreign key in Table 1 refers to the Primary Key of Table 2, then every value of the Foreign Key in Table 1 must be null or be available in Table 2.
  • 17. Key constraints ◦ Keys are the entity set that is used to identify an entity within its entity set uniquely. ◦ An entity set can have multiple keys, but out of which one key will be the primary key. A primary key can contain a unique and null value in the relational table.
  • 18. Schema Architecture ◦ This framework is used to describe the structure of a specific database system. ◦ The three schema architecture is also used to separate the user applications and physical database. ◦ The three schema architecture contains three-levels. It breaks the database down into three different categories.
  • 19. Internal Level ◦ The internal level has an internal schema which describes the physical storage structure of the database. ◦ The internal schema is also known as a physical schema. ◦ It uses the physical data model. It is used to define that how the data will be stored in a block. ◦ The physical level is used to describe complex low-level data structures in detail.
  • 20. Conceptual Level ◦ The conceptual schema describes the design of a database at the conceptual level. Conceptual level is also known as logical level. ◦ The conceptual schema describes the structure of the whole database. ◦ The conceptual level describes what data are to be stored in the database and also describes what relationship exists among those data. ◦ In the conceptual level, internal details such as an implementation of the data structure are hidden. ◦ Programmers and database administrators work at this level.
  • 21. External Level ◦ At the external level, a database contains several schemas that sometimes called as subschema. The subschema is used to describe the different view of the database. ◦ An external schema is also known as view schema. ◦ Each view schema describes the database part that a particular user group is interested and hides the remaining database from that user group. ◦ The view schema describes the end user interaction with database systems.
  • 22. Data Independence ◦ Data independence can be explained using the three-schema architecture. ◦ Data independence refers characteristic of being able to modify the schema at one level of the database system without altering the schema at the next higher level.
  • 23. Logical Data Independence ◦ Logical data independence refers characteristic of being able to change the conceptual schema without having to change the external schema. ◦ Logical data independence is used to separate the external level from the conceptual view. ◦ If we do any changes in the conceptual view of the data, then the user view of the data would not be affected. ◦ Logical data independence occurs at the user interface level.
  • 24. Physical Data Independence ◦ Physical data independence can be defined as the capacity to change the internal schema without having to change the conceptual schema. ◦ If we do any changes in the storage size of the database system server, then the Conceptual structure of the database will not be affected. ◦ Physical data independence is used to separate conceptual levels from the internal levels. ◦ Physical data independence occurs at the logical interface level.
  • 25. Need for using DBMS ◦ Processing Queries ◦ Controlling redundancy and inconsistency ◦ Efficient memory management and indexing ◦ Concurrency control and transaction management ◦ Access control and ease in accessing data ◦ Integrity constraints