SlideShare a Scribd company logo
IN THE NAME
OF
ALLAH THE
ALMIGHTY
WHAT IS A
DATABASE
Database Fundamentals
Data : Data, in the context of databases,
refers to all the single items that are
stored in a database, either individually
or as a set. Data in a database is
primarily stored in database tables such
as people, objects, or events
Database Fundamentals
Information : Data that have been
processed and presented in a form
suitable for human interpretation
Database
A database is a shared collection of
logically related data that is stored to
meet the requirements of different users
of an organization
Why Use Database
File System vs Database
Basis File System DBMS
Structure
The file system is a way of arranging the files
in a storage medium within a computer.
DBMS is software for managing the database.
Data Redundancy
Redundant data can be present in a file
system.
In DBMS there is no redundant data.
Backup and
Recovery
It doesn’t provide backup and recovery of data
if it is lost.
It provides backup and recovery of data even
if it is lost.
Query processing
There is no efficient query processing in the
file system.
Efficient query processing is there in DBMS.
Consistency
There is less data consistency in the file
system.
There is more data consistency because of the
process of normalization.
File System vs Database
Complexity It is less complex as compared to DBMS.
It has more complexity in handling as
compared to the file system.
Security Constraints
File systems provide less security in
comparison to DBMS.
DBMS has more security mechanisms as
compared to file systems.
User Access Only one user can access data at a time. Multiple users can access data at a time.
Sharing
Data is distributed in many files. So, not easy
to share data
Due to centralized nature sharing is easy
Data Abstraction
It give details of storage and representation of
data
It hides the internal details of Database
Integrity
Constraints
Integrity Constraints are difficult to implement Integrity constraints are easy to implement
Database Fundamentals
Database Management system (DBMS) : A
database management system (DBMS) is
system software for creating and managing
databases. A DBMS makes it possible for
end users to create, protect, read, update and
delete data in a database.
Examples : MySQL · Microsoft Access · Oracle
Types of Database
Hierarchical Databases : Just as in any
hierarchy, this database follows the
progression of data being categorized in
ranks or levels
Hierarchical Database
Types of Database
Relational Database : In a relational database
management system (RDBMS), the
relationship between data is relational and
stored in tabular form of columns and rows.
Each table column represents an attribute,
and each Row in a table represents a record.
Each field in a table represents a data value.
Relational Database
Components of a database
Components of a relational database
Table/Relation : Everything in a
relational database is stored in the form
of relations.
The RDBMS database uses tables to store data.
Table/Relation
A table is a collection of related data
entries and contains rows and columns to
store data. Each table represents some
real-world objects such as person, place,
or event about which information is
collected.
Table/Relation
Properties of a Relation:
Each relation has a unique name by
which it is identified in the database.
Relation does not contain duplicate
tuples.
Table/Relation
The tuples of a relation have no
specific order.
All attributes in a relation are atomic,
i.e., each cell of a relation contains
exactly one value.
Table/Relation
ID Name AGE COURSE
1 Ali 24 B.Tech
2 Aryan 20 C.A
3 Manahil 21 BCA
4 Rani 22 MCA
5 Adnan 26 BSC
Table/Relation
Row or record
A row of a table is also called a record or
tuple. It contains the specific information
of each entry in the table. It is a
horizontal entity in the table. For
example, The above table contains 5
records.
Table/Relation
Properties of a row
 No two tuples are identical to each other in all their
entries.
 All tuples of the relation have the same format and
the same number of entries.
 The order of the tuple is irrelevant. They are
identified by their content, not by their position.
Table/Relation
Column/Attribute : A column is a vertical
entity in the table which contains all
information associated with a specific
field in a table. For example, "name" is a
column in the above table which contains
all information about a student's name.
Table/Relation
Properties of an Attribute
 Every attribute of a relation must
have a name.
 Null values are permitted for the
attributes.
Table/Relation
 Default values can be specified for an
attribute automatically inserted if no
other value is specified for an
attribute.
 Attributes that uniquely identify each
tuple of a relation are the primary key.
Table/Relation
Name
Ajeet
Aryan
Mahesh
Ratan
Vimal
Form
In a database context, a form is a window
or screen that contains numerous fields, or
spaces to enter data. Each field holds a
field label so that any user who views the
form gets an idea of its contents
Components of a database
Components of a database
Query
A database query is a request for data from
a database. The request should come in a
database table or a combination of tables
using a code known as the query language.
This way, the system can understand and
process the query accordingly.
Components of a database
 Below are some of the most common query
commands along with their functions
SELECT – fetch data from the database. It’s one
of the most popular commands, as every request
begins with a select query.
AND – combine data from one or more tables.
CREATE TABLE – build different tables and
specify the name of each column within.
Query
ORDER BY – sort data results either numerically
or alphabetically.
UPDATE – modify existing rows in a table.
INSERT – add new data or rows to an existing
table.
WHERE – filter data and get its value based on a
set condition.
Query
REPORT
A database report is a document that summarizes
the data stored in a database. It is an excellent
way to organize, analyze, and present data in an
easy-to-understand format. Reports are used in
many industries, including business, healthcare,
government, and education, to communicate
important information to stakeholders.
Components of a database
Database Keys
Keys : Keys play an important role in the
relational database.
It is used to uniquely identify any
record or row of data from the table. It
is also used to establish and identify
relationships between tables.
Database Keys
Types of keys:
Database Keys
Primary key : It is the first key used to
identify one and only one instance of an
entity uniquely.
Database Keys
Foreign key : Foreign keys are the
column of the table used to point to the
primary key of another table.
Database Relationship
The backbone of any relational database
is a database relationship. Once you have
defined tables, you can relate the data
held in different tables.
Database Relationship
One-to-One
A record in Table-A relates to one
matching record in Table-B, and each
record in Table-B relates to one
matching record in Table-A.
Database Relationship
Database Relationship
Each record in the Employee table is
about one employee. That record relates
to only one record in the Pay table. Each
record in the Pay table relates only one
record in the Employee table.
Database Relationship
One-to-Many
A record in Table-A can have many
matching records in Table-B, but a
record in Table-B can have only one
matching record in Table-A.
Database Relationship
Database Relationship
A one-to-many relationship is the most
common relationship found between tables
in a relational database. The Customer table
holds a unique record for each customer.
Each customer can place many orders.
Many records in the Order table can relate
to only one record in the Customers table.
Database Relationship
Many-to-Many
In a many-to-many relationship, each
record in both tables can relate to
many records in the other table. These
relationships require a third table,
called an intermediary table.
Database Relationship
Database Relationship
The relationship between the Customer
and Order table is one-to-many. But the
relationship between the Order table and
Product table is many-to-many.
Database Relationship
An order can contain multiple products, and a
product could be linked to multiple orders as
several customers might submit an order that
contains the same products. This kind of
relationship requires a minimum of three
tables.

More Related Content

PPTX
database concepts.pptx
PDF
Database_Concepts_Final.pptx.pdf for class 12
PPTX
9 rdbms of digital documentaion of class ix
PPTX
PPT_DBMS.pptx
PDF
rdbms8.pdf
PPTX
Accounting Information System Related Data.pptx
database concepts.pptx
Database_Concepts_Final.pptx.pdf for class 12
9 rdbms of digital documentaion of class ix
PPT_DBMS.pptx
rdbms8.pdf
Accounting Information System Related Data.pptx

Similar to Database.pptx (20)

PPTX
Manjeet Singh.pptx
PPTX
DATABASE-1.pptx
PPTX
Introduction to databases
PDF
DB- Lect #1 Intro.pdf
PPTX
introductiontodatabases-151106233350-lva1-app6892(2).pptx
PDF
Overview_of_Database.nnjjbvjjhgkpptx-1.pdf
PPTX
Key,ID Field and Tables Relationship
PPTX
Database Concepts.pptx
PPTX
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
PPT
Database concepts
PPTX
Organisation of database vs Organisation of database
PPTX
Database - R.D.Sivakumar
PPTX
codd rules of dbms given by E F codd who is called father of dbms
PPTX
Codds rules & keys
PPTX
RDMS AND SQL
PDF
Database ManagementSystem_Lecture_03.pdf
PPTX
Databases and its representation
DOCX
COMPUTERS Database
PPTX
PDF
rdbms-161216100344 (1).pdf
Manjeet Singh.pptx
DATABASE-1.pptx
Introduction to databases
DB- Lect #1 Intro.pdf
introductiontodatabases-151106233350-lva1-app6892(2).pptx
Overview_of_Database.nnjjbvjjhgkpptx-1.pdf
Key,ID Field and Tables Relationship
Database Concepts.pptx
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
Database concepts
Organisation of database vs Organisation of database
Database - R.D.Sivakumar
codd rules of dbms given by E F codd who is called father of dbms
Codds rules & keys
RDMS AND SQL
Database ManagementSystem_Lecture_03.pdf
Databases and its representation
COMPUTERS Database
rdbms-161216100344 (1).pdf

Recently uploaded (20)

PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Modernising the Digital Integration Hub
PDF
STKI Israel Market Study 2025 version august
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Hybrid model detection and classification of lung cancer
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
Getting Started with Data Integration: FME Form 101
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
August Patch Tuesday
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
1. Introduction to Computer Programming.pptx
Tartificialntelligence_presentation.pptx
Modernising the Digital Integration Hub
STKI Israel Market Study 2025 version august
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Enhancing emotion recognition model for a student engagement use case through...
A novel scalable deep ensemble learning framework for big data classification...
Final SEM Unit 1 for mit wpu at pune .pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Assigned Numbers - 2025 - Bluetooth® Document
Hybrid model detection and classification of lung cancer
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Getting started with AI Agents and Multi-Agent Systems
O2C Customer Invoices to Receipt V15A.pptx
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Getting Started with Data Integration: FME Form 101
Web App vs Mobile App What Should You Build First.pdf
August Patch Tuesday
Univ-Connecticut-ChatGPT-Presentaion.pdf

Database.pptx

  • 1. IN THE NAME OF ALLAH THE ALMIGHTY
  • 3. Database Fundamentals Data : Data, in the context of databases, refers to all the single items that are stored in a database, either individually or as a set. Data in a database is primarily stored in database tables such as people, objects, or events
  • 4. Database Fundamentals Information : Data that have been processed and presented in a form suitable for human interpretation
  • 5. Database A database is a shared collection of logically related data that is stored to meet the requirements of different users of an organization
  • 7. File System vs Database Basis File System DBMS Structure The file system is a way of arranging the files in a storage medium within a computer. DBMS is software for managing the database. Data Redundancy Redundant data can be present in a file system. In DBMS there is no redundant data. Backup and Recovery It doesn’t provide backup and recovery of data if it is lost. It provides backup and recovery of data even if it is lost. Query processing There is no efficient query processing in the file system. Efficient query processing is there in DBMS. Consistency There is less data consistency in the file system. There is more data consistency because of the process of normalization.
  • 8. File System vs Database Complexity It is less complex as compared to DBMS. It has more complexity in handling as compared to the file system. Security Constraints File systems provide less security in comparison to DBMS. DBMS has more security mechanisms as compared to file systems. User Access Only one user can access data at a time. Multiple users can access data at a time. Sharing Data is distributed in many files. So, not easy to share data Due to centralized nature sharing is easy Data Abstraction It give details of storage and representation of data It hides the internal details of Database Integrity Constraints Integrity Constraints are difficult to implement Integrity constraints are easy to implement
  • 9. Database Fundamentals Database Management system (DBMS) : A database management system (DBMS) is system software for creating and managing databases. A DBMS makes it possible for end users to create, protect, read, update and delete data in a database. Examples : MySQL · Microsoft Access · Oracle
  • 10. Types of Database Hierarchical Databases : Just as in any hierarchy, this database follows the progression of data being categorized in ranks or levels
  • 12. Types of Database Relational Database : In a relational database management system (RDBMS), the relationship between data is relational and stored in tabular form of columns and rows. Each table column represents an attribute, and each Row in a table represents a record. Each field in a table represents a data value.
  • 14. Components of a database
  • 15. Components of a relational database Table/Relation : Everything in a relational database is stored in the form of relations. The RDBMS database uses tables to store data.
  • 16. Table/Relation A table is a collection of related data entries and contains rows and columns to store data. Each table represents some real-world objects such as person, place, or event about which information is collected.
  • 17. Table/Relation Properties of a Relation: Each relation has a unique name by which it is identified in the database. Relation does not contain duplicate tuples.
  • 18. Table/Relation The tuples of a relation have no specific order. All attributes in a relation are atomic, i.e., each cell of a relation contains exactly one value.
  • 19. Table/Relation ID Name AGE COURSE 1 Ali 24 B.Tech 2 Aryan 20 C.A 3 Manahil 21 BCA 4 Rani 22 MCA 5 Adnan 26 BSC
  • 20. Table/Relation Row or record A row of a table is also called a record or tuple. It contains the specific information of each entry in the table. It is a horizontal entity in the table. For example, The above table contains 5 records.
  • 21. Table/Relation Properties of a row  No two tuples are identical to each other in all their entries.  All tuples of the relation have the same format and the same number of entries.  The order of the tuple is irrelevant. They are identified by their content, not by their position.
  • 22. Table/Relation Column/Attribute : A column is a vertical entity in the table which contains all information associated with a specific field in a table. For example, "name" is a column in the above table which contains all information about a student's name.
  • 23. Table/Relation Properties of an Attribute  Every attribute of a relation must have a name.  Null values are permitted for the attributes.
  • 24. Table/Relation  Default values can be specified for an attribute automatically inserted if no other value is specified for an attribute.  Attributes that uniquely identify each tuple of a relation are the primary key.
  • 26. Form In a database context, a form is a window or screen that contains numerous fields, or spaces to enter data. Each field holds a field label so that any user who views the form gets an idea of its contents Components of a database
  • 27. Components of a database
  • 28. Query A database query is a request for data from a database. The request should come in a database table or a combination of tables using a code known as the query language. This way, the system can understand and process the query accordingly. Components of a database
  • 29.  Below are some of the most common query commands along with their functions SELECT – fetch data from the database. It’s one of the most popular commands, as every request begins with a select query. AND – combine data from one or more tables. CREATE TABLE – build different tables and specify the name of each column within. Query
  • 30. ORDER BY – sort data results either numerically or alphabetically. UPDATE – modify existing rows in a table. INSERT – add new data or rows to an existing table. WHERE – filter data and get its value based on a set condition. Query
  • 31. REPORT A database report is a document that summarizes the data stored in a database. It is an excellent way to organize, analyze, and present data in an easy-to-understand format. Reports are used in many industries, including business, healthcare, government, and education, to communicate important information to stakeholders. Components of a database
  • 32. Database Keys Keys : Keys play an important role in the relational database. It is used to uniquely identify any record or row of data from the table. It is also used to establish and identify relationships between tables.
  • 34. Database Keys Primary key : It is the first key used to identify one and only one instance of an entity uniquely.
  • 35. Database Keys Foreign key : Foreign keys are the column of the table used to point to the primary key of another table.
  • 36. Database Relationship The backbone of any relational database is a database relationship. Once you have defined tables, you can relate the data held in different tables.
  • 37. Database Relationship One-to-One A record in Table-A relates to one matching record in Table-B, and each record in Table-B relates to one matching record in Table-A.
  • 39. Database Relationship Each record in the Employee table is about one employee. That record relates to only one record in the Pay table. Each record in the Pay table relates only one record in the Employee table.
  • 40. Database Relationship One-to-Many A record in Table-A can have many matching records in Table-B, but a record in Table-B can have only one matching record in Table-A.
  • 42. Database Relationship A one-to-many relationship is the most common relationship found between tables in a relational database. The Customer table holds a unique record for each customer. Each customer can place many orders. Many records in the Order table can relate to only one record in the Customers table.
  • 43. Database Relationship Many-to-Many In a many-to-many relationship, each record in both tables can relate to many records in the other table. These relationships require a third table, called an intermediary table.
  • 45. Database Relationship The relationship between the Customer and Order table is one-to-many. But the relationship between the Order table and Product table is many-to-many.
  • 46. Database Relationship An order can contain multiple products, and a product could be linked to multiple orders as several customers might submit an order that contains the same products. This kind of relationship requires a minimum of three tables.