SlideShare a Scribd company logo
Computer Science
Class XII ( As per CBSE Board)
Chapter 8
Database
Concepts
Visit : python.mykvs.in for regular updates
As per Term
wise
Syllabus
2021-22
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
A Database is a collection of DATA/INFORMATION that is
organized so that it can be easily accessed, managed and
updated.
In Database ,Data is organized into rows, columns and tables,
and it is indexed to make it easier to find relevant
information. It works like a container which contains the
various object like Tables, Queries, Reports etc. in organized
way.
WHY DO WE NEED 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.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
Database Management System(DBMS)
❖ A DBMS refers to a software that is responsible for storing,
maintaining and utilizing database in an efficient way.
❖ A Database along with DBMS software is called Database
System.
❖ Example of DBMS software are Oracle, MS SQL Server, MS
Access, Paradox, DB2 and MySQL etc.
❖ MySQL is open source and freeware DBMS.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
Advantages of Database System
❖ 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 of data. For
ex. A date can’t be like 31/31/2000.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
Data Model- Way of data representation
Data model is a model or presentation which shows How data is organized ? or stored
in the database. A data is modeled by one of
the following given-
❖ Relational Data Model
In this model data is organized into Relations or Tables (i.e. Rows and Columns). A row
in a table represents a relationship of data to each other and also called a Tuple or
Record. A column is called
Attribute or Field.
❖ Network Data Model
In this model, data is represented by collection of records and relationship among data
is shown by Links.
❖ Hierarchical Data Model
In this model, Records are organized as Trees. Records at top level is called Root record
and this may contains multiple directly linked
children records.
❖ Object Oriented Data Model
In this model, records are represented as a objects. The collection of similar types of
object is called class.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
RELATIONAL DATABASE
A relational database is a collective set of multiple data sets
organized by tables, records and columns. Relational database
establish a well-defined relationship between database
tables. Tables communicate and share information, which
facilitates data searcheability, organization and reporting.
A Relational database use Structured Query Language (SQL),
which is a standard user application that provides an easy
programming interface for database interaction.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
RELATIONAL DATABASE TERMS
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
RELATIONAL 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.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
KEYS IN A DATABASE
Key plays an important role in relational database; it is used for
identifying unique rows from table & establishes relationship among
tables on need.
Types of keys in DBMS
❖ Primary Key – A primary is a column or set of columns in a table
that uniquely identifies tuples (rows) in that table.
❖ Candidate Key –It is an attribute or a set of attributes or keys
participating for Primary Key, to uniquely identify each record in
that table.
❖ Alternate Key – Out of all candidate keys, only one gets selected
as primary key, remaining keys are known as alternate or
secondary keys.
❖ Foreign Key – Foreign keys are the columns of a table that points
to the primary key of another table. They act as a cross-reference
between tables.
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates
KEYS IN A DATABASE
DATABASE CONCEPTS
Visit : python.mykvs.in for regular updates

More Related Content

Similar to rdbms8.pdf

Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
MrjJoker1
 
DBMS Notes.pdf
DBMS Notes.pdfDBMS Notes.pdf
DBMS Notes.pdf
shubhampatel67739
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Tamur Iqbal
 
object oriented analysis data.pptx
object oriented analysis data.pptxobject oriented analysis data.pptx
object oriented analysis data.pptx
nibiganesh
 
database
databasedatabase
What is a database.docx
What is a database.docxWhat is a database.docx
What is a database.docx
SurendraGusain2
 
What is a database.docx
What is a database.docxWhat is a database.docx
What is a database.docx
Surendra Gusain
 
DS-DATABASE.ppt
DS-DATABASE.pptDS-DATABASE.ppt
DS-DATABASE.ppt
OasisMiris
 
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.pptDS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
fydfyd1
 
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
Zulfiquer Ahmed Amin
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02smelltulip
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Lecture#5
Lecture#5Lecture#5
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
Bahria University Islamabad, Pakistan
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
MR Z
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
oudesign
 

Similar to rdbms8.pdf (20)

Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 
Database concepts
Database conceptsDatabase concepts
Database concepts
 
DBMS Notes.pdf
DBMS Notes.pdfDBMS Notes.pdf
DBMS Notes.pdf
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
object oriented analysis data.pptx
object oriented analysis data.pptxobject oriented analysis data.pptx
object oriented analysis data.pptx
 
database
databasedatabase
database
 
What is a database.docx
What is a database.docxWhat is a database.docx
What is a database.docx
 
What is a database.docx
What is a database.docxWhat is a database.docx
What is a database.docx
 
DS-DATABASE.ppt
DS-DATABASE.pptDS-DATABASE.ppt
DS-DATABASE.ppt
 
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.pptDS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
DS-DATABASE dsfgsdfgsdfgsfgsdfg sdgfgd.ppt
 
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
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
 
Database systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdfDatabase systems Handbook by Muhammad Sharif.pdf
Database systems Handbook by Muhammad Sharif.pdf
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
 

Recently uploaded

Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
nhiyenphan2005
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 

Recently uploaded (20)

Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 

rdbms8.pdf

  • 1. Computer Science Class XII ( As per CBSE Board) Chapter 8 Database Concepts Visit : python.mykvs.in for regular updates As per Term wise Syllabus 2021-22
  • 2. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates A Database is a collection of DATA/INFORMATION that is organized so that it can be easily accessed, managed and updated. In Database ,Data is organized into rows, columns and tables, and it is indexed to make it easier to find relevant information. It works like a container which contains the various object like Tables, Queries, Reports etc. in organized way.
  • 3. WHY DO WE NEED 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. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 4. Database Management System(DBMS) ❖ A DBMS refers to a software that is responsible for storing, maintaining and utilizing database in an efficient way. ❖ A Database along with DBMS software is called Database System. ❖ Example of DBMS software are Oracle, MS SQL Server, MS Access, Paradox, DB2 and MySQL etc. ❖ MySQL is open source and freeware DBMS. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 5. Advantages of Database System ❖ 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 of data. For ex. A date can’t be like 31/31/2000. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 6. Data Model- Way of data representation Data model is a model or presentation which shows How data is organized ? or stored in the database. A data is modeled by one of the following given- ❖ Relational Data Model In this model data is organized into Relations or Tables (i.e. Rows and Columns). A row in a table represents a relationship of data to each other and also called a Tuple or Record. A column is called Attribute or Field. ❖ Network Data Model In this model, data is represented by collection of records and relationship among data is shown by Links. ❖ Hierarchical Data Model In this model, Records are organized as Trees. Records at top level is called Root record and this may contains multiple directly linked children records. ❖ Object Oriented Data Model In this model, records are represented as a objects. The collection of similar types of object is called class. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 7. RELATIONAL DATABASE A relational database is a collective set of multiple data sets organized by tables, records and columns. Relational database establish a well-defined relationship between database tables. Tables communicate and share information, which facilitates data searcheability, organization and reporting. A Relational database use Structured Query Language (SQL), which is a standard user application that provides an easy programming interface for database interaction. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 8. RELATIONAL DATABASE TERMS DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 9. RELATIONAL 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. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 10. KEYS IN A DATABASE Key plays an important role in relational database; it is used for identifying unique rows from table & establishes relationship among tables on need. Types of keys in DBMS ❖ Primary Key – A primary is a column or set of columns in a table that uniquely identifies tuples (rows) in that table. ❖ Candidate Key –It is an attribute or a set of attributes or keys participating for Primary Key, to uniquely identify each record in that table. ❖ Alternate Key – Out of all candidate keys, only one gets selected as primary key, remaining keys are known as alternate or secondary keys. ❖ Foreign Key – Foreign keys are the columns of a table that points to the primary key of another table. They act as a cross-reference between tables. DATABASE CONCEPTS Visit : python.mykvs.in for regular updates
  • 11. KEYS IN A DATABASE DATABASE CONCEPTS Visit : python.mykvs.in for regular updates