SlideShare a Scribd company logo
1 of 15
DATABASE CONCEPTS
DATABASE
 May be defined as a collection of
interrelated data stored together to serve multiple
application
 It is computer based record keeping system.
 It not onlyallows to store but also allows
us modification of data as per requirements.
DBMS
 A DBMS refers to Database Management System
 It is a software that is responsible for storing,
manipulating, maintaining and utilizing database.
 A database along with the a DBMS is referred to as a
database system.
NEED OF DATABASE
To manage large chunks of data: if size of data increases into thousands of records,
it will simply create a problem to manage.Database can manage large amount of
data.
Accuracy: Through validation rule in database ,data accuracy can be maintained.
Ease of updating data: With the database, we can flexibly update the data according
to our convenience. Moreover, multiple people can also edit data at same time.
Security of data: With databases we have security groups and privileges to
restrict access.
Data integrity: In databases, we can be assured of accuracy and consistency of
data due to the built in integrity checks and access controls.
ADVANTAGES OF DATABASE
Databases reduces Redundancy
• It removes duplication of data because data are kept at one place and
all the application refers to the centrally maintained database.
Database controls Inconsistency
• When two copies of the same data do not agree to each other, then
it is called
• Inconsistency. By controlling redundancy, the inconsistency is also
controlled.
Database facilitate Sharing of Data
• Data stored in the database can be shared among several users.
Database ensures Security
• Data are protected against accidental or intentional disclosure to
unauthorized
• person or unauthorized modification.
Database maintains Integrity
• It enforces certain integrity rules to insure the validity or correctness
RELATIONAL DATABASE MODEL
 In relational database model data is organized into table (i.e. rows and
columns).
 These tables are also known as relations.
 A row in a table represent relationship among a set of values.
 A column represent the field/attributes related to relation under which
information will be stored.
 For example if we want to store details of students then : Roll, Name,
Class, Section, etc. will be the column/attributes and the collection of
all the column information will become a Row/Record
EXAMPLES OF RDBMS
• ORACLE DB
• MICROSOFT SQL SERVER
• MYSQL
• IBM DB2
• IBM INFIRMIX
• SAP SYBASE
• SQLite
• POSTGRESQL
• MySQL/SQLite/PostgreSQL are open source implementations
COMPONENTS OF A TABLE
oByte: group of 8 bits and is used to store a character.
o Data Item : It is the smallest unit of named data.
o It represent one type of information and often referred to as a field or
column information
o Record: collection of data items which represent a complete unit of
information
o Table: collection of all Rows and Columns.
DEPTNO DNAME LOCATION
10 HR NEW YORK
20 ACCOUNTS BRAZIL
30 SALES CANADA
40 IT INDIA
Fields
Data Items (requires 5 bytes)
Records
TABLE
SAMPLE
TABLES
GENDER DEPTNO SALARY COMM
F 10 20000 1200
M 20 24000
F 10 28000 2000
M 30 18000 3000
M 30 22000 1700
EMPLOYEE
EMPNO ENAME
1 ANKITA
2 SUJEET
3 VIJAYA
4 NITIN
5 VIKRAM
DEPARTMENT
DEPTNO DNAME LOCATION
10 HR NEW YORK
20 ACCOUNTS BRAZIL
30 SALES CANADA
40 IT INDIA
DATABASE TERMS
Relation (Table)
• A Relation or Table is Matrix like structure arranged in Rows and
Columns. It has the following properties-
Atomicity : Each column assigned a unique name and must have
atomic(indivisible) value i.e. a value that can not be further
subdivided.
No duplicity: No two rows of relation will be identical i.e. in any two
rows
• value in at least one column must be different.
• All items in a column are homogeneous i.e.same data type.
Ordering of rows and column is immaterial.
Domain :It is collection of values from which the value is derived for a
• column.
Tuple / Entity / Record - Rows of a table is called Tuple or Record.
Attribute/ Field- Column of a table is called Attribute or Field.
Degree - Number of columns (attributes) in a table.
Cardinality - Number of rows (Records) in a table.
KEYS OF DATABASE
 Primary Key
A set of one or more attribute that can identify a record uniquely in the relation
is called Primary Key.
There can be only 1 primary key in a table
Allows only distinct (no duplicate) values and also forces mandatory entry
(NOT NULL) i.e. we cannot left it blank.
 Candidate Key
In a table there can be more than one attribute which contains unique values.
These columns are known as candidate key as they are the candidate for
primary key.
Among these database analyst select one as a primary key based on
requirement like must contain unique value, compulsory entry and where
maximum searching is done etc.
 Alternate Key
In case of multiple candidate keys, one of them will be selected as
Primary Key and rest of the column will serve as Alternate Key
A Candidate Key which is not a primary key is an Alternate Key.
 Foreign key
Used to create relationship between two tables.
It is a non-key attribute whose value is derived from
• the Primary key of another table.
Foreign key column will for the value in Primary key of another table, if
present then entry will be allowed otherwise data will be rejected.
Primary Key column table from where values will be derived is known
as Primary Table or Master Table or Parent Table and Foreign key
column table will be Foreign Table or Detail Table or Child table
EMPNO ENAME GENDER DEPTNO SALARY COMM
1 ANKITA F 10 20000 1200
2 SUJEET M 20 24000
3 VIJAYA F 10 28000 2000
4 NITIN M 30 18000 3000
5 VIKRAM M 30 22000 1700
DEPTNO DNAME LOCATION
10 HR NEW YORK
20 ACCOUNTS BRAZIL
30 SALES CANADA
40 IT INDIA
DEPARTMENT
EMPLOYEE
From the Above table definition we can observe that the DEPTNO
column of EMPLOYEE table is deriving its value from DEPTNO of
table DEPARTMENT. So we can say that the DEPTNO of
EMPLOYEE table is a foreign key whose value is dependent upon
the Primary key column DEPTNO of table DEPARTMENT.
Parent
Table
Child
Table
HOME WORK
1.Define database.
2.Compare DBMS and RDBMS
3.Write the need of using a database.
4.Write down the advantages of using Database
5.Define the following:
(i) Primary key (ii) Foreign key (iii)Degree of a table (iv)Cardinality
of Table

More Related Content

Similar to DATABASE-1.pptx

Similar to DATABASE-1.pptx (20)

PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 
Dbms Basics
Dbms BasicsDbms Basics
Dbms Basics
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 
Keerty rdbms sql
Keerty rdbms sqlKeerty rdbms sql
Keerty rdbms sql
 
demo2.ppt
demo2.pptdemo2.ppt
demo2.ppt
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Ankit
AnkitAnkit
Ankit
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
rdbms8.pdf
rdbms8.pdfrdbms8.pdf
rdbms8.pdf
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
 
12 SQL
12 SQL12 SQL
12 SQL
 
12 SQL
12 SQL12 SQL
12 SQL
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
ER Digramms by Harshal wagh
ER Digramms by Harshal waghER Digramms by Harshal wagh
ER Digramms by Harshal wagh
 
Unit 2 DBMS.pptx
Unit 2 DBMS.pptxUnit 2 DBMS.pptx
Unit 2 DBMS.pptx
 
RDBMS
RDBMSRDBMS
RDBMS
 

Recently uploaded

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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
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
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
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
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
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
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
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
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
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
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

DATABASE-1.pptx

  • 2. DATABASE  May be defined as a collection of interrelated data stored together to serve multiple application  It is computer based record keeping system.  It not onlyallows to store but also allows us modification of data as per requirements.
  • 3. DBMS  A DBMS refers to Database Management System  It is a software that is responsible for storing, manipulating, maintaining and utilizing database.  A database along with the a DBMS is referred to as a database system.
  • 4. NEED OF DATABASE To manage large chunks of data: if size of data increases into thousands of records, it will simply create a problem to manage.Database can manage large amount of data. Accuracy: Through validation rule in database ,data accuracy can be maintained. Ease of updating data: With the database, we can flexibly update the data according to our convenience. Moreover, multiple people can also edit data at same time. Security of data: With databases we have security groups and privileges to restrict access. Data integrity: In databases, we can be assured of accuracy and consistency of data due to the built in integrity checks and access controls.
  • 5. ADVANTAGES OF DATABASE Databases reduces Redundancy • It removes duplication of data because data are kept at one place and all the application refers to the centrally maintained database. Database controls Inconsistency • When two copies of the same data do not agree to each other, then it is called • Inconsistency. By controlling redundancy, the inconsistency is also controlled. Database facilitate Sharing of Data • Data stored in the database can be shared among several users. Database ensures Security • Data are protected against accidental or intentional disclosure to unauthorized • person or unauthorized modification. Database maintains Integrity • It enforces certain integrity rules to insure the validity or correctness
  • 6. RELATIONAL DATABASE MODEL  In relational database model data is organized into table (i.e. rows and columns).  These tables are also known as relations.  A row in a table represent relationship among a set of values.  A column represent the field/attributes related to relation under which information will be stored.  For example if we want to store details of students then : Roll, Name, Class, Section, etc. will be the column/attributes and the collection of all the column information will become a Row/Record
  • 7. EXAMPLES OF RDBMS • ORACLE DB • MICROSOFT SQL SERVER • MYSQL • IBM DB2 • IBM INFIRMIX • SAP SYBASE • SQLite • POSTGRESQL • MySQL/SQLite/PostgreSQL are open source implementations
  • 8. COMPONENTS OF A TABLE oByte: group of 8 bits and is used to store a character. o Data Item : It is the smallest unit of named data. o It represent one type of information and often referred to as a field or column information o Record: collection of data items which represent a complete unit of information o Table: collection of all Rows and Columns.
  • 9. DEPTNO DNAME LOCATION 10 HR NEW YORK 20 ACCOUNTS BRAZIL 30 SALES CANADA 40 IT INDIA Fields Data Items (requires 5 bytes) Records TABLE
  • 10. SAMPLE TABLES GENDER DEPTNO SALARY COMM F 10 20000 1200 M 20 24000 F 10 28000 2000 M 30 18000 3000 M 30 22000 1700 EMPLOYEE EMPNO ENAME 1 ANKITA 2 SUJEET 3 VIJAYA 4 NITIN 5 VIKRAM DEPARTMENT DEPTNO DNAME LOCATION 10 HR NEW YORK 20 ACCOUNTS BRAZIL 30 SALES CANADA 40 IT INDIA
  • 11. DATABASE TERMS Relation (Table) • A Relation or Table is Matrix like structure arranged in Rows and Columns. It has the following properties- Atomicity : Each column assigned a unique name and must have atomic(indivisible) value i.e. a value that can not be further subdivided. No duplicity: No two rows of relation will be identical i.e. in any two rows • value in at least one column must be different. • All items in a column are homogeneous i.e.same data type. Ordering of rows and column is immaterial. Domain :It is collection of values from which the value is derived for a • column. Tuple / Entity / Record - Rows of a table is called Tuple or Record. Attribute/ Field- Column of a table is called Attribute or Field. Degree - Number of columns (attributes) in a table. Cardinality - Number of rows (Records) in a table.
  • 12. KEYS OF DATABASE  Primary Key A set of one or more attribute that can identify a record uniquely in the relation is called Primary Key. There can be only 1 primary key in a table Allows only distinct (no duplicate) values and also forces mandatory entry (NOT NULL) i.e. we cannot left it blank.  Candidate Key In a table there can be more than one attribute which contains unique values. These columns are known as candidate key as they are the candidate for primary key. Among these database analyst select one as a primary key based on requirement like must contain unique value, compulsory entry and where maximum searching is done etc.
  • 13.  Alternate Key In case of multiple candidate keys, one of them will be selected as Primary Key and rest of the column will serve as Alternate Key A Candidate Key which is not a primary key is an Alternate Key.  Foreign key Used to create relationship between two tables. It is a non-key attribute whose value is derived from • the Primary key of another table. Foreign key column will for the value in Primary key of another table, if present then entry will be allowed otherwise data will be rejected. Primary Key column table from where values will be derived is known as Primary Table or Master Table or Parent Table and Foreign key column table will be Foreign Table or Detail Table or Child table
  • 14. EMPNO ENAME GENDER DEPTNO SALARY COMM 1 ANKITA F 10 20000 1200 2 SUJEET M 20 24000 3 VIJAYA F 10 28000 2000 4 NITIN M 30 18000 3000 5 VIKRAM M 30 22000 1700 DEPTNO DNAME LOCATION 10 HR NEW YORK 20 ACCOUNTS BRAZIL 30 SALES CANADA 40 IT INDIA DEPARTMENT EMPLOYEE From the Above table definition we can observe that the DEPTNO column of EMPLOYEE table is deriving its value from DEPTNO of table DEPARTMENT. So we can say that the DEPTNO of EMPLOYEE table is a foreign key whose value is dependent upon the Primary key column DEPTNO of table DEPARTMENT. Parent Table Child Table
  • 15. HOME WORK 1.Define database. 2.Compare DBMS and RDBMS 3.Write the need of using a database. 4.Write down the advantages of using Database 5.Define the following: (i) Primary key (ii) Foreign key (iii)Degree of a table (iv)Cardinality of Table