SlideShare a Scribd company logo
Overview of Database
A Database is a collection of logically related data stored in a
particular manner, from which information/data can be easily
accessed, managed and updated at a very fast speed.
An electronic data processing system that uses a database for
the storage of data is known as a database system.
Example: Payroll Management System, Banking, Booking
Tickets.
Database Management System (DBMS)
A DBMS is a software that allows creation, definition and
manipulation of database. DBMS is actually a tool used to
perform any kind of operation on data in database. DBMS also
provides protection and security to database. It maintains
data consistency in case of multiple users. Here are some
EDP is referred to the use of automated
methods to process commercial data.
examples of popular DBMS, MySQL, Oracle, Microsoft Access
and IBM DB2 etc.
Advantages of DBMS
Reduced data redundancy (duplicacy of data)
Data independence and consistency
Easy retrieval of data
Information protection (data integrity & security)
Components of database system
Users - Users may be of various type such as DB
administrator, System developer and End users.
Database application - Database application may be Personal,
Enterprise and Internal.
DBMS - Software that allow users to define, create and
manages database access, Ex: MySQL, Oracle etc.
Database - Collection of logical data.
Purposes of Databases
- Databases reduce the data redundancy to a large extent.
- Databases can control data inconsistency to a large extent.
- Databases facilitate sharing of data.
- Databases can ensure data security
- Data integrity can be maintained through databases
Database Abstraction
Data Abstraction is a process of hiding irrelevant details from
user. The major purpose is to provide only that much
information that is required by them.
Various levels of database implementation
Physical Level: In this level it describes how data are actually
stored on the storage medium. You can get the complex data
structure details at this level.
Conceptual Level: In this level it describes what data are
actually stored and also describes the relationships among
data.
View Level: In this level it describes only the information from
the database which is required by the individual user.
Concept of data independence
The ability to modify a scheme definition in one level without
effecting a scheme definition in the next level is called Data
Independence.
Physical data independence refers to the ability to modify the
scheme followed at the physical level without affecting the
scheme followed at conceptual level.
Logical data independence refers to the ability to modify the
conceptual scheme without causing any changes in the scheme
followed at view levels.
Different Data models
A Data model is a collection of concepts that can be used to
describe the structure of a database, including the
relationships and constraints that determine how data can be
stored and accessed.
Three models are commonly used. They are,
Hierarchical Model
The hierarchical model organizes data into a tree-like
structure, where each record has a single parent or root.
Sibling records are sorted in a particular order. That order is
used as the physical order for storing the database. This model
is good for describing many real-world relationships.
Network Model
This data model represents many to many relationship. It is
represented by collection of records and relationships among
data are represented as links.
Relational Model
This model was proposed by Dr. Edgar F. Codd in 1970. It
uses table to store the data. The data is organized in two
dimensional tables called relations.
The Relational model
The relational model was proposed by E. F. Codd of the IBM
and acknowledged as a very important concept in DBMS.
RDBMS stores data in the form of related tables and describes
how data is related or how it will be extracted from the
database.
Entity - An Entity is an object which can be distinctly
identified.
Relation - A relation is similar to table which consists of rows
and columns. It is the basic storage structure of RDBMS.
Domain - The domain is a set of possible values that an
attribute can have.
Tuple - A row in a relation is also called as a tuple.
Attribute - a column in a relation is also called as an attribute.
Degree - The number of attributes in a relation is called the
degree of the relation.
Cardinality - The number of tuples in a relation is called the
cardinality of that relation.
Views - A view is a kind of table whose contents are taken
from other tables depending upon a condition. The contents of
a view are determined by carrying out the execution of the
given query.
Structure of Relational Databases
Keys - Keys are used to establish and identify relations
between tables. They also ensure that each record within a
table can be uniquely identified by combination of one or more
attributes within a table.
Primary key
A primary key is a set of one or more attributes that can
uniquely identify tuples within the relation.
Candidate key
Candidate keys are defined as the set of fields from which
primary key can be selected. It is an attribute or set of
attribute that can act as a primary key for a table to uniquely
identify each record in that table.
Alternate key
The candidate key which are not selected for primary key are
known as alternative keys
Let's take an example of student it can contain NAME, ROLL
NO., ID and CLASS.
Here ROLL NO. is primary key and rest of all columns like
NAME, ID and CLASS are alternate keys.
If a table has more than one candidate key, one of them will
become the primary key and rest of all are called alternate
keys.
Foreign key
A FOREIGN KEY is a key used to link two tables together.
A FOREIGN KEY is a field (or collection of fields) in one table
that refers to the PRIMARY KEY in another table.
The table containing the foreign key is called the child table,
and the table containing the candidate key is called the
referenced or parent table.
The Relation Algebra
Select Operation (σ)
It selects tuples that satisfy the given predicate from a
relation.
Notation − σp(r)
Where σ stands for selection predicate and r stands for
relation. p is prepositional logic formula which may use
connectors like and, or, and not. These terms may use
relational operators like − =, ≠, ≥, <, >, ≤.
For example −
σsubject = "Computer Science"(Books)
Output − Selects tuples from books where subject is 'Computer
Science'.
σsubject = "maths" and price = "450"(Books)
Output − Selects tuples from books where subject is 'maths'
and 'price' is 450.
Project Operation (∏)
It projects column(s) that satisfy a given predicate.
Notation − ∏A1, A2, An (r)
Where A1, A2, are attribute names of relation r.
Duplicate rows are automatically eliminated, as relation is a
set.
For example −
∏subject, author (Books)
Selects and projects columns named as subject and author
from the relation Books.
Cartesian product (Χ)
Combines information of two different relations into one.
Notation − r Χ s
Where r and s are relations and their output will be defined as
σauthor = 'shariff'(Books Χ Articles)
Union Operation
For R ∪ S, The union of two relations R and S defines a
relation that contains all the tuples of R, or S, or both R and S,
duplicate tuples being eliminated. R and S must be union-
compatible.
For a union operation to be applied, the following rules must
hold −
r, and s must have the same quantity of attributes.
Attribute domains must be compatible.
Duplicate tuples gets automatically eliminated.
Set Difference (−)
The result of set difference operation is tuples, which are
present in one relation but are not in the second relation.
Notation: r − s
Finds all the tuples that are present in r but not in s.
∏ author (Books) − ∏ author (Articles)
Output − Provides the name of authors who have written
books but not articles.
Set Intersection Operation
The set intersection operation finds tuples that are common to
the two operand operations. This operation is denoted by ∩
Ad

More Related Content

What's hot (20)

Etl techniques
Etl techniquesEtl techniques
Etl techniques
mahezabeenIlkal
 
What is ETL testing & how to enforce it in Data Wharehouse
What is ETL testing & how to enforce it in Data WharehouseWhat is ETL testing & how to enforce it in Data Wharehouse
What is ETL testing & how to enforce it in Data Wharehouse
BugRaptors
 
01 session tracking
01   session tracking01   session tracking
01 session tracking
dhrubo kayal
 
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
Edureka!
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
Madishetty Prathibha
 
DBMS its Advantages and Disadvantages.pdf
DBMS its Advantages and Disadvantages.pdfDBMS its Advantages and Disadvantages.pdf
DBMS its Advantages and Disadvantages.pdf
naveedabbas61
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
Sumathi MathanMohan
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
Sharad Dubey
 
ETL Process
ETL ProcessETL Process
ETL Process
Karthik Selvaraj
 
BACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMS
BaivabiNayak
 
What is Informatica Powercenter
What is Informatica PowercenterWhat is Informatica Powercenter
What is Informatica Powercenter
BigClasses Com
 
Data extraction, transformation, and loading
Data extraction, transformation, and loadingData extraction, transformation, and loading
Data extraction, transformation, and loading
Siddique Ibrahim
 
Databases
DatabasesDatabases
Databases
guestf77c65c
 
Matrices
MatricesMatrices
Matrices
Magda Fernandez
 
What is ETL?
What is ETL?What is ETL?
What is ETL?
Ismail El Gayar
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain
 
Learn C# Programming - Data Types & Type Conversion
Learn C# Programming - Data Types & Type ConversionLearn C# Programming - Data Types & Type Conversion
Learn C# Programming - Data Types & Type Conversion
Eng Teong Cheah
 
Unit-1_Notes(OOAD).pdf
Unit-1_Notes(OOAD).pdfUnit-1_Notes(OOAD).pdf
Unit-1_Notes(OOAD).pdf
ganeshkarthy
 
Data structures using C
Data structures using CData structures using C
Data structures using C
Prof. Dr. K. Adisesha
 
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball ApproachMicrosoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Mark Ginnebaugh
 
What is ETL testing & how to enforce it in Data Wharehouse
What is ETL testing & how to enforce it in Data WharehouseWhat is ETL testing & how to enforce it in Data Wharehouse
What is ETL testing & how to enforce it in Data Wharehouse
BugRaptors
 
01 session tracking
01   session tracking01   session tracking
01 session tracking
dhrubo kayal
 
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
How to Become a Data Analyst? | Data Analyst Skills | Data Analyst Training |...
Edureka!
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
Madishetty Prathibha
 
DBMS its Advantages and Disadvantages.pdf
DBMS its Advantages and Disadvantages.pdfDBMS its Advantages and Disadvantages.pdf
DBMS its Advantages and Disadvantages.pdf
naveedabbas61
 
BACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMS
BaivabiNayak
 
What is Informatica Powercenter
What is Informatica PowercenterWhat is Informatica Powercenter
What is Informatica Powercenter
BigClasses Com
 
Data extraction, transformation, and loading
Data extraction, transformation, and loadingData extraction, transformation, and loading
Data extraction, transformation, and loading
Siddique Ibrahim
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain
 
Learn C# Programming - Data Types & Type Conversion
Learn C# Programming - Data Types & Type ConversionLearn C# Programming - Data Types & Type Conversion
Learn C# Programming - Data Types & Type Conversion
Eng Teong Cheah
 
Unit-1_Notes(OOAD).pdf
Unit-1_Notes(OOAD).pdfUnit-1_Notes(OOAD).pdf
Unit-1_Notes(OOAD).pdf
ganeshkarthy
 
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball ApproachMicrosoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Microsoft Data Warehouse Business Intelligence Lifecycle - The Kimball Approach
Mark Ginnebaugh
 

Similar to COMPUTERS Database (20)

Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
Relational Model in DBMS detail explanation
Relational Model in DBMS detail explanationRelational Model in DBMS detail explanation
Relational Model in DBMS detail explanation
keerthanaparath1
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
traderbear1
 
Database_Concepts_Final.pptx.pdf for class 12
Database_Concepts_Final.pptx.pdf for class 12Database_Concepts_Final.pptx.pdf for class 12
Database_Concepts_Final.pptx.pdf for class 12
pramodcoder1319
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Chapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdfChapter 2 Database System Architecture.pdf
Chapter 2 Database System Architecture.pdf
Getnet Tigabie Askale -(GM)
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbms
Anjaan Gajendra
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip
 
RDBMS
RDBMSRDBMS
RDBMS
NIVEETHITHAS
 
Data models
Data modelsData models
Data models
Hira Bukhari
 
Data models
Data modelsData models
Data models
Hira Bukhari
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
Chapter 2 Database Systems Architectures
Chapter 2 Database Systems ArchitecturesChapter 2 Database Systems Architectures
Chapter 2 Database Systems Architectures
AdaneGendisha
 
Chapter 2 Database Systems Architectures
Chapter 2 Database Systems ArchitecturesChapter 2 Database Systems Architectures
Chapter 2 Database Systems Architectures
AdaneGendisha
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
fikadumola
 
Data resource management
Data resource managementData resource management
Data resource management
Nirajan Silwal
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
Ruhull
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
Balasingham Karthiban
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
Relational Model in DBMS detail explanation
Relational Model in DBMS detail explanationRelational Model in DBMS detail explanation
Relational Model in DBMS detail explanation
keerthanaparath1
 
Database_Concepts_Final.pptx.pdf for class 12
Database_Concepts_Final.pptx.pdf for class 12Database_Concepts_Final.pptx.pdf for class 12
Database_Concepts_Final.pptx.pdf for class 12
pramodcoder1319
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbms
Anjaan Gajendra
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip
 
Database Technology Teaching Material For Learn
Database Technology Teaching Material For LearnDatabase Technology Teaching Material For Learn
Database Technology Teaching Material For Learn
hermawatyrahma21
 
Chapter 2 Database Systems Architectures
Chapter 2 Database Systems ArchitecturesChapter 2 Database Systems Architectures
Chapter 2 Database Systems Architectures
AdaneGendisha
 
Chapter 2 Database Systems Architectures
Chapter 2 Database Systems ArchitecturesChapter 2 Database Systems Architectures
Chapter 2 Database Systems Architectures
AdaneGendisha
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
fikadumola
 
Data resource management
Data resource managementData resource management
Data resource management
Nirajan Silwal
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
Ruhull
 
Ad

More from Rc Os (20)

Dove
DoveDove
Dove
Rc Os
 
CLASS IV ENGLISH
CLASS IV ENGLISHCLASS IV ENGLISH
CLASS IV ENGLISH
Rc Os
 
CLASS 4 MATHS
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os
 
CLASS 4 MATHS
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os
 
CLASS III MATHS
CLASS III MATHS CLASS III MATHS
CLASS III MATHS
Rc Os
 
CLASS III MATHS
CLASS III MATHSCLASS III MATHS
CLASS III MATHS
Rc Os
 
Changing times.
Changing times.Changing times.
Changing times.
Rc Os
 
3 class english
3 class english3 class english
3 class english
Rc Os
 
Clss ii english-the mouse---
Clss ii  english-the mouse---Clss ii  english-the mouse---
Clss ii english-the mouse---
Rc Os
 
Rainbow
RainbowRainbow
Rainbow
Rc Os
 
NUMBERS 1 TO 20
NUMBERS 1 TO 20NUMBERS 1 TO 20
NUMBERS 1 TO 20
Rc Os
 
TIME
TIMETIME
TIME
Rc Os
 
MEASUREMENTS
MEASUREMENTSMEASUREMENTS
MEASUREMENTS
Rc Os
 
DATA HANDLING
DATA HANDLINGDATA HANDLING
DATA HANDLING
Rc Os
 
patterns
 patterns patterns
patterns
Rc Os
 
Who is heavier
Who is heavierWho is heavier
Who is heavier
Rc Os
 
Sundari
SundariSundari
Sundari
Rc Os
 
The tiger and the mosquitoe
The tiger and the mosquitoeThe tiger and the mosquitoe
The tiger and the mosquitoe
Rc Os
 
Photoshop
PhotoshopPhotoshop
Photoshop
Rc Os
 
COMPUTERS SQL
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL
Rc Os
 
Dove
DoveDove
Dove
Rc Os
 
CLASS IV ENGLISH
CLASS IV ENGLISHCLASS IV ENGLISH
CLASS IV ENGLISH
Rc Os
 
CLASS 4 MATHS
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os
 
CLASS 4 MATHS
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os
 
CLASS III MATHS
CLASS III MATHS CLASS III MATHS
CLASS III MATHS
Rc Os
 
CLASS III MATHS
CLASS III MATHSCLASS III MATHS
CLASS III MATHS
Rc Os
 
Changing times.
Changing times.Changing times.
Changing times.
Rc Os
 
3 class english
3 class english3 class english
3 class english
Rc Os
 
Clss ii english-the mouse---
Clss ii  english-the mouse---Clss ii  english-the mouse---
Clss ii english-the mouse---
Rc Os
 
Rainbow
RainbowRainbow
Rainbow
Rc Os
 
NUMBERS 1 TO 20
NUMBERS 1 TO 20NUMBERS 1 TO 20
NUMBERS 1 TO 20
Rc Os
 
TIME
TIMETIME
TIME
Rc Os
 
MEASUREMENTS
MEASUREMENTSMEASUREMENTS
MEASUREMENTS
Rc Os
 
DATA HANDLING
DATA HANDLINGDATA HANDLING
DATA HANDLING
Rc Os
 
patterns
 patterns patterns
patterns
Rc Os
 
Who is heavier
Who is heavierWho is heavier
Who is heavier
Rc Os
 
Sundari
SundariSundari
Sundari
Rc Os
 
The tiger and the mosquitoe
The tiger and the mosquitoeThe tiger and the mosquitoe
The tiger and the mosquitoe
Rc Os
 
Photoshop
PhotoshopPhotoshop
Photoshop
Rc Os
 
COMPUTERS SQL
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL
Rc Os
 
Ad

Recently uploaded (20)

Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 

COMPUTERS Database

  • 1. Overview of Database A Database is a collection of logically related data stored in a particular manner, from which information/data can be easily accessed, managed and updated at a very fast speed. An electronic data processing system that uses a database for the storage of data is known as a database system. Example: Payroll Management System, Banking, Booking Tickets. Database Management System (DBMS) A DBMS is a software that allows creation, definition and manipulation of database. DBMS is actually a tool used to perform any kind of operation on data in database. DBMS also provides protection and security to database. It maintains data consistency in case of multiple users. Here are some EDP is referred to the use of automated methods to process commercial data.
  • 2. examples of popular DBMS, MySQL, Oracle, Microsoft Access and IBM DB2 etc. Advantages of DBMS Reduced data redundancy (duplicacy of data) Data independence and consistency Easy retrieval of data Information protection (data integrity & security) Components of database system Users - Users may be of various type such as DB administrator, System developer and End users. Database application - Database application may be Personal, Enterprise and Internal. DBMS - Software that allow users to define, create and manages database access, Ex: MySQL, Oracle etc. Database - Collection of logical data.
  • 3. Purposes of Databases - Databases reduce the data redundancy to a large extent. - Databases can control data inconsistency to a large extent. - Databases facilitate sharing of data. - Databases can ensure data security - Data integrity can be maintained through databases Database Abstraction Data Abstraction is a process of hiding irrelevant details from user. The major purpose is to provide only that much information that is required by them. Various levels of database implementation Physical Level: In this level it describes how data are actually stored on the storage medium. You can get the complex data structure details at this level. Conceptual Level: In this level it describes what data are actually stored and also describes the relationships among data. View Level: In this level it describes only the information from the database which is required by the individual user. Concept of data independence The ability to modify a scheme definition in one level without effecting a scheme definition in the next level is called Data Independence. Physical data independence refers to the ability to modify the scheme followed at the physical level without affecting the scheme followed at conceptual level.
  • 4. Logical data independence refers to the ability to modify the conceptual scheme without causing any changes in the scheme followed at view levels. Different Data models A Data model is a collection of concepts that can be used to describe the structure of a database, including the relationships and constraints that determine how data can be stored and accessed. Three models are commonly used. They are, Hierarchical Model The hierarchical model organizes data into a tree-like structure, where each record has a single parent or root. Sibling records are sorted in a particular order. That order is used as the physical order for storing the database. This model is good for describing many real-world relationships. Network Model This data model represents many to many relationship. It is represented by collection of records and relationships among data are represented as links.
  • 5. Relational Model This model was proposed by Dr. Edgar F. Codd in 1970. It uses table to store the data. The data is organized in two dimensional tables called relations. The Relational model The relational model was proposed by E. F. Codd of the IBM and acknowledged as a very important concept in DBMS. RDBMS stores data in the form of related tables and describes how data is related or how it will be extracted from the database.
  • 6. Entity - An Entity is an object which can be distinctly identified. Relation - A relation is similar to table which consists of rows and columns. It is the basic storage structure of RDBMS. Domain - The domain is a set of possible values that an attribute can have. Tuple - A row in a relation is also called as a tuple. Attribute - a column in a relation is also called as an attribute. Degree - The number of attributes in a relation is called the degree of the relation. Cardinality - The number of tuples in a relation is called the cardinality of that relation. Views - A view is a kind of table whose contents are taken from other tables depending upon a condition. The contents of a view are determined by carrying out the execution of the given query. Structure of Relational Databases Keys - Keys are used to establish and identify relations between tables. They also ensure that each record within a table can be uniquely identified by combination of one or more attributes within a table. Primary key A primary key is a set of one or more attributes that can uniquely identify tuples within the relation.
  • 7. Candidate key Candidate keys are defined as the set of fields from which primary key can be selected. It is an attribute or set of attribute that can act as a primary key for a table to uniquely identify each record in that table.
  • 8. Alternate key The candidate key which are not selected for primary key are known as alternative keys Let's take an example of student it can contain NAME, ROLL NO., ID and CLASS. Here ROLL NO. is primary key and rest of all columns like NAME, ID and CLASS are alternate keys. If a table has more than one candidate key, one of them will become the primary key and rest of all are called alternate keys. Foreign key A FOREIGN KEY is a key used to link two tables together. A FOREIGN KEY is a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table. The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.
  • 9. The Relation Algebra Select Operation (σ) It selects tuples that satisfy the given predicate from a relation. Notation − σp(r) Where σ stands for selection predicate and r stands for relation. p is prepositional logic formula which may use connectors like and, or, and not. These terms may use relational operators like − =, ≠, ≥, <, >, ≤. For example − σsubject = "Computer Science"(Books) Output − Selects tuples from books where subject is 'Computer Science'. σsubject = "maths" and price = "450"(Books) Output − Selects tuples from books where subject is 'maths' and 'price' is 450. Project Operation (∏) It projects column(s) that satisfy a given predicate. Notation − ∏A1, A2, An (r) Where A1, A2, are attribute names of relation r. Duplicate rows are automatically eliminated, as relation is a set. For example − ∏subject, author (Books) Selects and projects columns named as subject and author from the relation Books.
  • 10. Cartesian product (Χ) Combines information of two different relations into one. Notation − r Χ s Where r and s are relations and their output will be defined as σauthor = 'shariff'(Books Χ Articles) Union Operation For R ∪ S, The union of two relations R and S defines a relation that contains all the tuples of R, or S, or both R and S, duplicate tuples being eliminated. R and S must be union- compatible. For a union operation to be applied, the following rules must hold − r, and s must have the same quantity of attributes. Attribute domains must be compatible. Duplicate tuples gets automatically eliminated. Set Difference (−) The result of set difference operation is tuples, which are present in one relation but are not in the second relation. Notation: r − s Finds all the tuples that are present in r but not in s. ∏ author (Books) − ∏ author (Articles) Output − Provides the name of authors who have written books but not articles. Set Intersection Operation The set intersection operation finds tuples that are common to the two operand operations. This operation is denoted by ∩