SlideShare a Scribd company logo
1 of 30
Download to read offline
Introduction to
Database
Syed Zaid Irshad
Outline
– What is a Database?
– Database creation steps
– Benefits of using Database
– Types of Table Relationships
– What is a Database model
– Database Management System
– Users of Database
– MS Access
What is a Database?
– A database is one of the important components for many applications and is used
for storing a series of data in a single set.
– In other words, it is a group/package of information that is put in order so that it can
be easily accessed, managed and updated.
– There are different types of database. They are:
– Bibliographic
– Full-text
– Numeric
– Images
– In a database, even the smallest portion of information becomes the data.
Database creation steps
– There are five steps to create a database:
– Create a database
– Define the fields in the database
– Define the views in the database
– Set permissions on the database
– Create database reports
Benefits of using Database
– For large amount of data having many different entities, designing and
implementing database can be very useful.
– Following are the few benefits we can avail using database:
– Fast query
– Multiple users
– Portability
– Flexibility
– longevity
Types of Table Relationships
– Relationship works by matching data in key columns, usually columns that have
same name.
– There are three type of table relationships in DBMS:
– One-to-One
– One-to-Many
– Many-to-Many
One-to-One
One-to-Many
Many-to-Many
What is a Database model
– A database model determines the logical structure of a database and how will
be data store, organized and manipulate.
– There are mainly three types of database models:
– Hierarchical
– Network
– Entity-relationship
– Relational
Hierarchical
– Data into a tree-like structure, with a single root, to which all the other data is
linked. The hierarchy starts from the Root data, and expands like a tree, adding
child nodes to the parent nodes.
– In other words, data is organized into tree-like structures with one, one-to-many
relationship between two different types of data.
– For example, one department can have many courses, many professors and off-
course many students.
Network
– This is an extension of the Hierarchical model.
– In this model, data is organized more like a graph, and are allowed to have
more than one parent node.
– In this database model data is more related as more relationships are
established in this database model.
– Also, as the data is more related, hence accessing the data is also easier and
fast. This database model was used to map many-to-many data relationships.
– This was the most widely used database model before Relational Model was
introduced.
Entity-relationship
– In this database model, relationships are created by dividing the object of
interest into an entity and its characteristics into attributes.
– Let's take an example, if we have to design a School Database, then Student
will be an entity with attributes name, age, address etc.
– As Address is generally complex, it can be another entity with attributes street
name, pin code, city etc., and there will be a relationship between them.
Relational
– In this model, data is organized in two-dimensional tables and the relationship
is maintained by storing a common field.
– The basic structure of data in the relational model is tables.
– All the information related to a particular type is stored in rows of that table.
Database Management System
– Entity
– Attributes
– Keys
– Components
Entity
– An Entity is generally a real-world object which has characteristics and holds
relationships in a DBMS.
– If a Student is an Entity, then the complete dataset of all the students will be the Entity
Set.
Attribute
– If a Student is an Entity, then student's roll no., student's name, student's age,
student's gender etc. will be its attributes.
– An attribute can be of many types, here are different types of attributes defined
in the ER database model:
– Simple attribute: The attributes with values that are atomic and cannot be broken
down further are simple attributes. For example, a student's age.
– Composite attribute: A composite attribute is made up of more than one simple
attribute. For example, student's address will contain, house no., street name, pin
code etc.
Attribute
– Derived attribute: These are the attributes which are not present in the whole
database management system but are derived using other attributes. For example,
the average age of students in a class.
– Single-valued attribute: As the name suggests, they have a single value.
– Multi-valued attribute: And, they can have multiple values.
Keys in DBMS
– Key is defined as the column or attribute of the database table.
– Keys are used to identify each record in the database table.
– Properties of good Key:
– Unique Identification
– Non-Redundancy
– Following the the types of Keys:
– Primary Key
– Super Key
– Foreign Key
Primary Key
– A column or group of columns in a table which helps us to uniquely identifies every row
in that table is called a primary key. This DBMS can't be a duplicate. The same value can't
appear more than once in the table.
– Rules for defining Primary key:
– Two rows can't have the same primary key value
– It must for every row to have a primary key value.
– The primary key field cannot be null.
– The value in a primary key column can never be modified or updated if any foreign key
refers to that primary key.
Super Key
– A super key is a group of single or multiple keys which identifies rows in a table.
– A Super key may have additional attributes that are not needed for unique identification.
Foreign Key
– A foreign key is a column which is added to create a relationship with another table.
– Foreign keys help us to maintain data integrity and also allows navigation between two
different instances of an entity.
– Every relationship in the model needs to be supported by a foreign key.
Components
– The database management system can be divided into five major components, they are:
– Hardware
– Software
– Data
– Procedures
– Database Access Language
Hardware
– When we say Hardware, we mean computers, hard disks, I/O channels for data,
and any other physical component involved before any data is successfully
stored into the memory.
– When we run Oracle or MySQL on our personal computer, then our computer's
Hard Disk, our Keyboard using which we type in all the commands, our
computer's RAM, ROM all become a part of the DBMS hardware.
Software
– This is the main component, as this is the program which controls everything.
– The DBMS software is more like a wrapper around the physical database, which
provides us with an easy-to-use interface to store, access and update data.
– The DBMS software is capable of understanding the Database Access Language
and interpret it into actual database commands to execute them on the DB.
Data
– Data is that resource, for which DBMS was designed. The motive behind the
creation of DBMS was to store and utilize data.
– In a typical Database, the user saved Data is present and metadata is stored.
– Metadata is data about the data. This is information stored by the DBMS to
better understand the data stored in it.
– For example: When I store my Name in a database, the DBMS will store when
the name was stored in the database, what is the size of the name, is it stored
as related data to some other data, or is it independent, all this information is
metadata.
Procedures
– Procedures refer to general instructions to use a database management system.
– This includes procedures to set up and installs a DBMS, to login and logout of
DBMS software, to manage databases, to take backups, generating reports etc.
Database Access Language
– Database Access Language is a simple language designed to write commands to
access, insert, update and delete data stored in any database.
– A user can write commands in the Database Access Language and submit it to
the DBMS for execution, which is then translated and executed by the DBMS.
– User can create new databases, tables, insert data, fetch stored data, update
data and delete the data using the access language.
Users of Database
– Database Administrators
– Database Administrator or DBA is the one who manages the complete database
management system.
– DBA takes care of the security of the DBMS, it's availability, managing the license
keys, managing user accounts and access etc.
– Application Programmer or Software Developer:
– This user group is involved in developing and designing the parts of DBMS.
– End-User:
– End users are the one who stores, retrieve, update and delete data.
MS Access
– Datatypes
– Objects

More Related Content

What's hot

Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
Β 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
Β 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
Β 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modelingoudesign
Β 
Data models
Data modelsData models
Data modelsUsman Tariq
Β 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to databasePradnya Saval
Β 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMSkoolkampus
Β 
Relational database
Relational database Relational database
Relational database Megha Sharma
Β 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.yhen06
Β 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sqlzahid6
Β 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
Β 
Working with Databases and MySQL
Working with Databases and MySQLWorking with Databases and MySQL
Working with Databases and MySQLNicole Ryan
Β 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architectureKumar
Β 

What's hot (20)

Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Β 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
Β 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
Β 
Database
DatabaseDatabase
Database
Β 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
Β 
Data dictionary
Data dictionaryData dictionary
Data dictionary
Β 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
Β 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
Β 
Data models
Data modelsData models
Data models
Β 
Data Models
Data ModelsData Models
Data Models
Β 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
Β 
Database systems introduction
Database systems introductionDatabase systems introduction
Database systems introduction
Β 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS
Β 
Relational database
Relational database Relational database
Relational database
Β 
Parallel Database
Parallel DatabaseParallel Database
Parallel Database
Β 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
Β 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sql
Β 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
Β 
Working with Databases and MySQL
Working with Databases and MySQLWorking with Databases and MySQL
Working with Databases and MySQL
Β 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
Β 

Similar to Introduction to Database

Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfrsujeet169
Β 
Presentation Datatbase Final.pptx
Presentation Datatbase Final.pptxPresentation Datatbase Final.pptx
Presentation Datatbase Final.pptxMuneeburRehman677485
Β 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-introEhtisham Ali
Β 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptxchatkall46
Β 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
Β 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbmsvikramkagitapu
Β 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
Β 
MADHU.pptx
MADHU.pptxMADHU.pptx
MADHU.pptxSaiKanna14
Β 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptxEmmanuel235416
Β 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptxSubhamSarkar64
Β 
Database management system
Database management systemDatabase management system
Database management systemAmit Sarkar
Β 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsZulfiquer Ahmed Amin
Β 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
Β 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxINTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxrenadmajid789
Β 

Similar to Introduction to Database (20)

Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
Β 
Presentation Datatbase Final.pptx
Presentation Datatbase Final.pptxPresentation Datatbase Final.pptx
Presentation Datatbase Final.pptx
Β 
Ch01
Ch01Ch01
Ch01
Β 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
Β 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
Β 
DBMS
DBMS DBMS
DBMS
Β 
Database management systems
Database management systemsDatabase management systems
Database management systems
Β 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Β 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbms
Β 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
Β 
Management information system
Management information systemManagement information system
Management information system
Β 
Lecture#5
Lecture#5Lecture#5
Lecture#5
Β 
MADHU.pptx
MADHU.pptxMADHU.pptx
MADHU.pptx
Β 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptx
Β 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
Β 
Database management system
Database management systemDatabase management system
Database management system
Β 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
Β 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Β 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxINTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
Β 
Dbms unit i
Dbms unit iDbms unit i
Dbms unit i
Β 

More from Syed Zaid Irshad

Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdfSyed Zaid Irshad
Β 
DBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionDBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionSyed Zaid Irshad
Β 
Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptxSyed Zaid Irshad
Β 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxSyed Zaid Irshad
Β 
Professional Issues in Computing
Professional Issues in ComputingProfessional Issues in Computing
Professional Issues in ComputingSyed Zaid Irshad
Β 
Reduce course notes class xi
Reduce course notes class xiReduce course notes class xi
Reduce course notes class xiSyed Zaid Irshad
Β 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xiiSyed Zaid Irshad
Β 
Computer Programming
Computer ProgrammingComputer Programming
Computer ProgrammingSyed Zaid Irshad
Β 
ICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionSyed Zaid Irshad
Β 
Security, Copyright and the Law
Security, Copyright and the LawSecurity, Copyright and the Law
Security, Copyright and the LawSyed Zaid Irshad
Β 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer ArchitectureSyed Zaid Irshad
Β 
Information Networks
Information NetworksInformation Networks
Information NetworksSyed Zaid Irshad
Β 
Basic Concept of Information Technology
Basic Concept of Information TechnologyBasic Concept of Information Technology
Basic Concept of Information TechnologySyed Zaid Irshad
Β 
Introduction to ICS 1st Year Book
Introduction to ICS 1st Year BookIntroduction to ICS 1st Year Book
Introduction to ICS 1st Year BookSyed Zaid Irshad
Β 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operatorsSyed Zaid Irshad
Β 
Using subqueries to solve queries
Using subqueries to solve queriesUsing subqueries to solve queries
Using subqueries to solve queriesSyed Zaid Irshad
Β 

More from Syed Zaid Irshad (20)

Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
Β 
DBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_SolutionDBMS_Lab_Manual_&_Solution
DBMS_Lab_Manual_&_Solution
Β 
Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptx
Β 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
Β 
Professional Issues in Computing
Professional Issues in ComputingProfessional Issues in Computing
Professional Issues in Computing
Β 
Reduce course notes class xi
Reduce course notes class xiReduce course notes class xi
Reduce course notes class xi
Β 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xii
Β 
C Language
C LanguageC Language
C Language
Β 
Flowchart
FlowchartFlowchart
Flowchart
Β 
Algorithm Pseudo
Algorithm PseudoAlgorithm Pseudo
Algorithm Pseudo
Β 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
Β 
ICS 2nd Year Book Introduction
ICS 2nd Year Book IntroductionICS 2nd Year Book Introduction
ICS 2nd Year Book Introduction
Β 
Security, Copyright and the Law
Security, Copyright and the LawSecurity, Copyright and the Law
Security, Copyright and the Law
Β 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
Β 
Data Communication
Data CommunicationData Communication
Data Communication
Β 
Information Networks
Information NetworksInformation Networks
Information Networks
Β 
Basic Concept of Information Technology
Basic Concept of Information TechnologyBasic Concept of Information Technology
Basic Concept of Information Technology
Β 
Introduction to ICS 1st Year Book
Introduction to ICS 1st Year BookIntroduction to ICS 1st Year Book
Introduction to ICS 1st Year Book
Β 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
Β 
Using subqueries to solve queries
Using subqueries to solve queriesUsing subqueries to solve queries
Using subqueries to solve queries
Β 

Recently uploaded

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
Β 
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)Dr. Mazin Mohamed alkathiri
Β 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
Β 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
Β 
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
Β 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
Β 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
Β 
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
Β 
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
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
Β 
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
Β 
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
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
Β 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
Β 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Β 

Recently uploaded (20)

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
Β 
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)
Β 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
Β 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Β 
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
Β 
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πŸ”
Β 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
Β 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.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
Β 
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
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
Β 
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
Β 
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
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
Β 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
Β 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Β 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Β 

Introduction to Database

  • 2. Outline – What is a Database? – Database creation steps – Benefits of using Database – Types of Table Relationships – What is a Database model – Database Management System – Users of Database – MS Access
  • 3. What is a Database? – A database is one of the important components for many applications and is used for storing a series of data in a single set. – In other words, it is a group/package of information that is put in order so that it can be easily accessed, managed and updated. – There are different types of database. They are: – Bibliographic – Full-text – Numeric – Images – In a database, even the smallest portion of information becomes the data.
  • 4. Database creation steps – There are five steps to create a database: – Create a database – Define the fields in the database – Define the views in the database – Set permissions on the database – Create database reports
  • 5. Benefits of using Database – For large amount of data having many different entities, designing and implementing database can be very useful. – Following are the few benefits we can avail using database: – Fast query – Multiple users – Portability – Flexibility – longevity
  • 6. Types of Table Relationships – Relationship works by matching data in key columns, usually columns that have same name. – There are three type of table relationships in DBMS: – One-to-One – One-to-Many – Many-to-Many
  • 10. What is a Database model – A database model determines the logical structure of a database and how will be data store, organized and manipulate. – There are mainly three types of database models: – Hierarchical – Network – Entity-relationship – Relational
  • 11. Hierarchical – Data into a tree-like structure, with a single root, to which all the other data is linked. The hierarchy starts from the Root data, and expands like a tree, adding child nodes to the parent nodes. – In other words, data is organized into tree-like structures with one, one-to-many relationship between two different types of data. – For example, one department can have many courses, many professors and off- course many students.
  • 12. Network – This is an extension of the Hierarchical model. – In this model, data is organized more like a graph, and are allowed to have more than one parent node. – In this database model data is more related as more relationships are established in this database model. – Also, as the data is more related, hence accessing the data is also easier and fast. This database model was used to map many-to-many data relationships. – This was the most widely used database model before Relational Model was introduced.
  • 13. Entity-relationship – In this database model, relationships are created by dividing the object of interest into an entity and its characteristics into attributes. – Let's take an example, if we have to design a School Database, then Student will be an entity with attributes name, age, address etc. – As Address is generally complex, it can be another entity with attributes street name, pin code, city etc., and there will be a relationship between them.
  • 14. Relational – In this model, data is organized in two-dimensional tables and the relationship is maintained by storing a common field. – The basic structure of data in the relational model is tables. – All the information related to a particular type is stored in rows of that table.
  • 15. Database Management System – Entity – Attributes – Keys – Components
  • 16. Entity – An Entity is generally a real-world object which has characteristics and holds relationships in a DBMS. – If a Student is an Entity, then the complete dataset of all the students will be the Entity Set.
  • 17. Attribute – If a Student is an Entity, then student's roll no., student's name, student's age, student's gender etc. will be its attributes. – An attribute can be of many types, here are different types of attributes defined in the ER database model: – Simple attribute: The attributes with values that are atomic and cannot be broken down further are simple attributes. For example, a student's age. – Composite attribute: A composite attribute is made up of more than one simple attribute. For example, student's address will contain, house no., street name, pin code etc.
  • 18. Attribute – Derived attribute: These are the attributes which are not present in the whole database management system but are derived using other attributes. For example, the average age of students in a class. – Single-valued attribute: As the name suggests, they have a single value. – Multi-valued attribute: And, they can have multiple values.
  • 19. Keys in DBMS – Key is defined as the column or attribute of the database table. – Keys are used to identify each record in the database table. – Properties of good Key: – Unique Identification – Non-Redundancy – Following the the types of Keys: – Primary Key – Super Key – Foreign Key
  • 20. Primary Key – A column or group of columns in a table which helps us to uniquely identifies every row in that table is called a primary key. This DBMS can't be a duplicate. The same value can't appear more than once in the table. – Rules for defining Primary key: – Two rows can't have the same primary key value – It must for every row to have a primary key value. – The primary key field cannot be null. – The value in a primary key column can never be modified or updated if any foreign key refers to that primary key.
  • 21. Super Key – A super key is a group of single or multiple keys which identifies rows in a table. – A Super key may have additional attributes that are not needed for unique identification.
  • 22. Foreign Key – A foreign key is a column which is added to create a relationship with another table. – Foreign keys help us to maintain data integrity and also allows navigation between two different instances of an entity. – Every relationship in the model needs to be supported by a foreign key.
  • 23. Components – The database management system can be divided into five major components, they are: – Hardware – Software – Data – Procedures – Database Access Language
  • 24. Hardware – When we say Hardware, we mean computers, hard disks, I/O channels for data, and any other physical component involved before any data is successfully stored into the memory. – When we run Oracle or MySQL on our personal computer, then our computer's Hard Disk, our Keyboard using which we type in all the commands, our computer's RAM, ROM all become a part of the DBMS hardware.
  • 25. Software – This is the main component, as this is the program which controls everything. – The DBMS software is more like a wrapper around the physical database, which provides us with an easy-to-use interface to store, access and update data. – The DBMS software is capable of understanding the Database Access Language and interpret it into actual database commands to execute them on the DB.
  • 26. Data – Data is that resource, for which DBMS was designed. The motive behind the creation of DBMS was to store and utilize data. – In a typical Database, the user saved Data is present and metadata is stored. – Metadata is data about the data. This is information stored by the DBMS to better understand the data stored in it. – For example: When I store my Name in a database, the DBMS will store when the name was stored in the database, what is the size of the name, is it stored as related data to some other data, or is it independent, all this information is metadata.
  • 27. Procedures – Procedures refer to general instructions to use a database management system. – This includes procedures to set up and installs a DBMS, to login and logout of DBMS software, to manage databases, to take backups, generating reports etc.
  • 28. Database Access Language – Database Access Language is a simple language designed to write commands to access, insert, update and delete data stored in any database. – A user can write commands in the Database Access Language and submit it to the DBMS for execution, which is then translated and executed by the DBMS. – User can create new databases, tables, insert data, fetch stored data, update data and delete the data using the access language.
  • 29. Users of Database – Database Administrators – Database Administrator or DBA is the one who manages the complete database management system. – DBA takes care of the security of the DBMS, it's availability, managing the license keys, managing user accounts and access etc. – Application Programmer or Software Developer: – This user group is involved in developing and designing the parts of DBMS. – End-User: – End users are the one who stores, retrieve, update and delete data.