SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Database Concepts
Computer Science
DATABASE CONCEPTS
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 Management System(DBMS)
ADBMS 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.
• 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.
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.
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.
RELATIONAL DATABASE TERMS
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.
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.
KEYS IN A DATABASE

More Related Content

PPTX
Relational algebra ppt
PPTX
Introduction to database
PDF
Relational algebra in dbms
PPTX
Concurrency Control in Database Management System
PPTX
Types of databases
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
PPTX
Data types
PPT
Week 3 Classification of Database Management Systems & Data Modeling
Relational algebra ppt
Introduction to database
Relational algebra in dbms
Concurrency Control in Database Management System
Types of databases
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Data types
Week 3 Classification of Database Management Systems & Data Modeling

What's hot (20)

PPT
File organization 1
PPTX
Introduction to Database
PPTX
Relational Database Management System
PPTX
Data Dictionary
PPTX
Dbms Introduction and Basics
PPTX
Acid properties
PPTX
Map Reduce
PPT
Database Presentation
PPT
Dbms relational model
PPTX
PPT
Data structure
PPTX
Normalization in DBMS
PPTX
Chapter 1 big data
PPTX
Chapter-7 Relational Calculus
PPT
MySQL ppt
PPTX
Multimedia Database
PPTX
Data mining tasks
PPT
UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...
PPTX
SQL(DDL & DML)
PPTX
Distributed database
File organization 1
Introduction to Database
Relational Database Management System
Data Dictionary
Dbms Introduction and Basics
Acid properties
Map Reduce
Database Presentation
Dbms relational model
Data structure
Normalization in DBMS
Chapter 1 big data
Chapter-7 Relational Calculus
MySQL ppt
Multimedia Database
Data mining tasks
UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...
SQL(DDL & DML)
Distributed database
Ad

Similar to database concepts.pptx (20)

PDF
Database_Concepts_Final.pptx.pdf for class 12
PPTX
IP-Lesson_Planning(Unit4 - Database concepts and SQL).pptx
PPTX
PPT_DBMS.pptx
PDF
rdbms8.pdf
PDF
CBSE XII Database Concepts And MySQL Presentation
PPTX
SESSION 1 DATABASE MANAGEMENT SYSTEM.pptx
PPTX
DATABASE-1.pptx
PDF
Introduction to Database Management Systems: Structure, Applications, and Key...
PPTX
9 rdbms of digital documentaion of class ix
PDF
Database Concepts & SQL(1).pdf
PDF
database1.pdf
PPTX
Database.pptx
PDF
Data Base Management System.pdf
PPTX
C1 basic concepts of database
PPTX
MIS-3rd Unit.pptx
PPTX
MIS-3rd Unit.pptx
PPTX
Presentation DBMS (1)
PPT
DBMS topic in PU
Database_Concepts_Final.pptx.pdf for class 12
IP-Lesson_Planning(Unit4 - Database concepts and SQL).pptx
PPT_DBMS.pptx
rdbms8.pdf
CBSE XII Database Concepts And MySQL Presentation
SESSION 1 DATABASE MANAGEMENT SYSTEM.pptx
DATABASE-1.pptx
Introduction to Database Management Systems: Structure, Applications, and Key...
9 rdbms of digital documentaion of class ix
Database Concepts & SQL(1).pdf
database1.pdf
Database.pptx
Data Base Management System.pdf
C1 basic concepts of database
MIS-3rd Unit.pptx
MIS-3rd Unit.pptx
Presentation DBMS (1)
DBMS topic in PU
Ad

Recently uploaded (20)

PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Leprosy and NLEP programme community medicine
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Managing Community Partner Relationships
PPTX
modul_python (1).pptx for professional and student
PDF
Microsoft Core Cloud Services powerpoint
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PDF
How to run a consulting project- client discovery
PPTX
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PDF
Introduction to Data Science and Data Analysis
Optimise Shopper Experiences with a Strong Data Estate.pdf
Database Infoormation System (DBIS).pptx
Leprosy and NLEP programme community medicine
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Introduction-to-Cloud-ComputingFinal.pptx
Topic 5 Presentation 5 Lesson 5 Corporate Fin
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
[EN] Industrial Machine Downtime Prediction
climate analysis of Dhaka ,Banglades.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Managing Community Partner Relationships
modul_python (1).pptx for professional and student
Microsoft Core Cloud Services powerpoint
STERILIZATION AND DISINFECTION-1.ppthhhbx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
How to run a consulting project- client discovery
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
Introduction to Data Science and Data Analysis

database concepts.pptx

  • 2. DATABASE CONCEPTS 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.
  • 4. Database Management System(DBMS) ADBMS 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 11. KEYS IN A DATABASE