SlideShare a Scribd company logo
1 of 12
Presented by : Rajendra Dangwal
Branch : C.S. (III)

Presented to : Mr. Yogesh Jain
DATABASE : A collection of data is referred to as
database.
e.g. 1. record of students stored in files
2. information stored over internet
DATABASE MANAGEMENT SYSTEM: It is basically a
computer based record keeping system (program).
e.g. MySQL
Microsoft Access
FileMaker
FoxPro
Purpose of database :
1. It reduces DATA REDUNDANCY to a large extent.
2. It controls DATA INCONSISTENCY.
3. It facilitate SHARING of data.
4. It ensures DATA SECURITY.
Name

D.O.B

Fees

Name

D.O.B

Fees

Harsh

23/01/1993

Not paid

Harsh

23/01/1993

Paid

Amar

04/11/1994

Paid

Amar

04/11/1994

Paid

Devendra

14/06/1992

Not paid

Devendra

14/06/1992

Paid

Harsh

23/01/1993

Not paid

Harsh

23/01/1993

Not paid

Data Redundancy

Data Inconsistency
Various levels of database implementation (concept of abstraction)
1.INTERNAL LEVEL (PHYSICAL LEVEL):
It describes how data are actually stored on the storage
medium.
It is closest to database programmer.
Lowest level of database abstraction.
2. CONCEPTUAL LEVEL:
It describes what data are actually stored in database.
It is closest to the database manager.
It is an intermediate level of database abstraction.
•EXTERNAL LEVEL (VIEW LEVEL):
It describes the way in which the data are viewed by individual
user.
It is the level closest to the users.
Three levels of data abstraction
Account holder
External level
User

View 1

Database
handler

View 2

View 3

Conceptual
level

Physical
level
(DBMS Programmer)

View 1
AC_Name
Amount

Conceptual
AC_No
AC_Name
Type
Amount
Internal
Stored-acc.
Account #
Name
Type
Amount

Manager
View 2
AC_No
AC_Name
Type
Amount

numeric(15)
character(20)
character(10)
numeric(15)

length=60
type=bytes(15) offset=0
type=bytes(20) offset=15
type=bytes(10) offset=35
type=bytes(15) offset=45
DATA MODELS
1.Relational Data Model

Table : Items
Item #

Itemname

Price

I1

Cake

50.00

I2

Bread

9.00

I3

Biscuits

I4

Snacks

Table : Shipments
Supp#

Item#

QtySupplie
d

6.00

S1

I2

20

16.00

S1

I3

25

S1

I4

10

S2

I1

5

S2

I3

10

Table : Suppliers
Supp#

Supp-name

S1

Britannia

S2

New Bakers

1. RELATIONAL DATA MODEL: In relational data model, the
data is stored in the form of tables (i.e. rows ad columns).
These tables are called relations.
The user of the relational database system may insert new tuples,
delete tuples, and modify tuples.
2. Network Data Model

S1
20

I2

Bread 9.00

Britannia
10

25
I3

Biscui
ts

6.00

I4

Snacks 16.00

2. NETWORK DATA MODEL: The network data model differs
from the relational model.
In this model data is represented by connection of records and
relationships among data are represented by links.
Records are organized as graphs.
3. Hierarchical Data Model
S1
I2
I3
I4

Britannia
Bread 9.00

Biscuits 6.00
20

Snacks 16.00
25
10

3. HIERARCHICAL DATA MODEL: Data is represented by
collection of records and relationships among data by links, similar
to the network model.
Records are organized as trees rather than graphs.
Represents relationship among its records through parent child
relationships.
Relational Data Model
The relational model was put forward by E.F. Codd of the IBM.
It is considered as a very important concept in DBMS.
Some basic terminologies
Relation : A relation is a table i.e. data is arranged in rows and columns.
Tuple : The rows of tables are generally referred to as tuples.
Attributes : The columns of tables are generally referred to as attributes.
Degree : The number of attributes in a relation determine the degree of
the relation.
Cardinality : The number of tuples in a relation is called the cardinality of
the relation.
Views
A view is a (virtual) table that does not really exist in its own right but is
instead derived from one or more underlying base tables.
It is an excellent way to give people access to some but not all
information (data abstraction).
Database Keys are used to establish and identify relations between
tables.
Primary key: It is a set of one or more attributes that can uniquely
identify the tuples within the relation.
Candidate key : All attribute combinations inside a relation that can
serve as a primary key are candidate keys.
Alternate key: A candidate key that is not the primary key is called the
alternate key.
Foreign key : A foreign key is a non key attribute whose value is derived
from the primary key of another table.
Table : Employee
Empno

Name

D.O.B.

Post

Area_code

101

Aakash

13/03/1994

Director

221

102

Shahrukh

26/11/1993

Director

223

103

Nishank

30/02/1989

Manager 156

104

Shivesh

24/03/1993

Clerk

223

105

Prem

31/05/1992

Clerk

156

Table : Location
Area_code

Area

State

156

Mumbai

Maharashtra

221

Bengaluru

Karnataka

223

Pune

Maharashtra

Primary Key in
this table

Foreign key in
this table
Basic DBMS ppt

More Related Content

What's hot

Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
sethu pm
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
koolkampus
 

What's hot (20)

Data base management system
Data base management systemData base management system
Data base management system
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
 
Relational model
Relational modelRelational model
Relational model
 
database
databasedatabase
database
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Database management system
Database management system Database management system
Database management system
 
The Relational Database Model
The Relational Database ModelThe Relational Database Model
The Relational Database Model
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
Advantages of DBMS
Advantages of DBMSAdvantages of DBMS
Advantages of DBMS
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Data Models
Data ModelsData Models
Data Models
 
Database systems
Database systemsDatabase systems
Database systems
 
RDBMS
RDBMSRDBMS
RDBMS
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 

Viewers also liked

Data base management system
Data base management systemData base management system
Data base management system
Navneet Jingar
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
Dimara Hakim
 
Peter Norton’s Introduction to Computers
Peter Norton’s Introduction to ComputersPeter Norton’s Introduction to Computers
Peter Norton’s Introduction to Computers
Ujjwal 'Shanu'
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
Jotham Gadot
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
Parvesh Gautam
 
Functions of database management systems
Functions of database management systemsFunctions of database management systems
Functions of database management systems
UZAIR UDDIN SHAIKH
 
Database management functions
Database management functionsDatabase management functions
Database management functions
yhen06
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
sameerraaj
 
Types of databases
Types of databasesTypes of databases
Types of databases
PAQUIAAIZEL
 
information system lecture notes
information system lecture notesinformation system lecture notes
information system lecture notes
naeem_mnm
 
Introduction to computers by peter norton 6 e (c.b)
Introduction to computers by peter norton 6 e (c.b)Introduction to computers by peter norton 6 e (c.b)
Introduction to computers by peter norton 6 e (c.b)
Fauzan Ilham
 
Microsoft word presentation
Microsoft word presentationMicrosoft word presentation
Microsoft word presentation
egirshovich
 

Viewers also liked (20)

Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Data base management system
Data base management systemData base management system
Data base management system
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
 
Intro Ch 09 A
Intro Ch 09 AIntro Ch 09 A
Intro Ch 09 A
 
Peter Norton’s Introduction to Computers
Peter Norton’s Introduction to ComputersPeter Norton’s Introduction to Computers
Peter Norton’s Introduction to Computers
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 
Function
FunctionFunction
Function
 
Functions of database management systems
Functions of database management systemsFunctions of database management systems
Functions of database management systems
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
DbMs
DbMsDbMs
DbMs
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Types of databases
Types of databasesTypes of databases
Types of databases
 
information system lecture notes
information system lecture notesinformation system lecture notes
information system lecture notes
 
Introduction to computers by peter norton 6 e (c.b)
Introduction to computers by peter norton 6 e (c.b)Introduction to computers by peter norton 6 e (c.b)
Introduction to computers by peter norton 6 e (c.b)
 
Database management system
Database management systemDatabase management system
Database management system
 
Microsoft word presentation
Microsoft word presentationMicrosoft word presentation
Microsoft word presentation
 

Similar to Basic DBMS ppt

Similar to Basic DBMS ppt (20)

Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
 
Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
 
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
 
Dbms
DbmsDbms
Dbms
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Spatial Database and Database Management System
Spatial Database and Database Management SystemSpatial Database and Database Management System
Spatial Database and Database Management System
 
Dbms
DbmsDbms
Dbms
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
 
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
 
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdf
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdfFull book Database system Handbook 3rd edition by Muhammad Sharif.pdf
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdf
 
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdf
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdfFull book Database system Handbook 3rd edition by Muhammad Sharif.pdf
Full book Database system Handbook 3rd edition by Muhammad Sharif.pdf
 
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
Complete book Database management systems Handbook 3rd edition by Muhammad Sh...
 
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
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Basic DBMS ppt

  • 1. Presented by : Rajendra Dangwal Branch : C.S. (III) Presented to : Mr. Yogesh Jain
  • 2. DATABASE : A collection of data is referred to as database. e.g. 1. record of students stored in files 2. information stored over internet DATABASE MANAGEMENT SYSTEM: It is basically a computer based record keeping system (program). e.g. MySQL Microsoft Access FileMaker FoxPro
  • 3. Purpose of database : 1. It reduces DATA REDUNDANCY to a large extent. 2. It controls DATA INCONSISTENCY. 3. It facilitate SHARING of data. 4. It ensures DATA SECURITY. Name D.O.B Fees Name D.O.B Fees Harsh 23/01/1993 Not paid Harsh 23/01/1993 Paid Amar 04/11/1994 Paid Amar 04/11/1994 Paid Devendra 14/06/1992 Not paid Devendra 14/06/1992 Paid Harsh 23/01/1993 Not paid Harsh 23/01/1993 Not paid Data Redundancy Data Inconsistency
  • 4. Various levels of database implementation (concept of abstraction) 1.INTERNAL LEVEL (PHYSICAL LEVEL): It describes how data are actually stored on the storage medium. It is closest to database programmer. Lowest level of database abstraction. 2. CONCEPTUAL LEVEL: It describes what data are actually stored in database. It is closest to the database manager. It is an intermediate level of database abstraction. •EXTERNAL LEVEL (VIEW LEVEL): It describes the way in which the data are viewed by individual user. It is the level closest to the users.
  • 5. Three levels of data abstraction Account holder External level User View 1 Database handler View 2 View 3 Conceptual level Physical level (DBMS Programmer) View 1 AC_Name Amount Conceptual AC_No AC_Name Type Amount Internal Stored-acc. Account # Name Type Amount Manager View 2 AC_No AC_Name Type Amount numeric(15) character(20) character(10) numeric(15) length=60 type=bytes(15) offset=0 type=bytes(20) offset=15 type=bytes(10) offset=35 type=bytes(15) offset=45
  • 6. DATA MODELS 1.Relational Data Model Table : Items Item # Itemname Price I1 Cake 50.00 I2 Bread 9.00 I3 Biscuits I4 Snacks Table : Shipments Supp# Item# QtySupplie d 6.00 S1 I2 20 16.00 S1 I3 25 S1 I4 10 S2 I1 5 S2 I3 10 Table : Suppliers Supp# Supp-name S1 Britannia S2 New Bakers 1. RELATIONAL DATA MODEL: In relational data model, the data is stored in the form of tables (i.e. rows ad columns). These tables are called relations. The user of the relational database system may insert new tuples, delete tuples, and modify tuples.
  • 7. 2. Network Data Model S1 20 I2 Bread 9.00 Britannia 10 25 I3 Biscui ts 6.00 I4 Snacks 16.00 2. NETWORK DATA MODEL: The network data model differs from the relational model. In this model data is represented by connection of records and relationships among data are represented by links. Records are organized as graphs.
  • 8. 3. Hierarchical Data Model S1 I2 I3 I4 Britannia Bread 9.00 Biscuits 6.00 20 Snacks 16.00 25 10 3. HIERARCHICAL DATA MODEL: Data is represented by collection of records and relationships among data by links, similar to the network model. Records are organized as trees rather than graphs. Represents relationship among its records through parent child relationships.
  • 9. Relational Data Model The relational model was put forward by E.F. Codd of the IBM. It is considered as a very important concept in DBMS. Some basic terminologies Relation : A relation is a table i.e. data is arranged in rows and columns. Tuple : The rows of tables are generally referred to as tuples. Attributes : The columns of tables are generally referred to as attributes. Degree : The number of attributes in a relation determine the degree of the relation. Cardinality : The number of tuples in a relation is called the cardinality of the relation.
  • 10. Views A view is a (virtual) table that does not really exist in its own right but is instead derived from one or more underlying base tables. It is an excellent way to give people access to some but not all information (data abstraction). Database Keys are used to establish and identify relations between tables. Primary key: It is a set of one or more attributes that can uniquely identify the tuples within the relation. Candidate key : All attribute combinations inside a relation that can serve as a primary key are candidate keys. Alternate key: A candidate key that is not the primary key is called the alternate key. Foreign key : A foreign key is a non key attribute whose value is derived from the primary key of another table.
  • 11. Table : Employee Empno Name D.O.B. Post Area_code 101 Aakash 13/03/1994 Director 221 102 Shahrukh 26/11/1993 Director 223 103 Nishank 30/02/1989 Manager 156 104 Shivesh 24/03/1993 Clerk 223 105 Prem 31/05/1992 Clerk 156 Table : Location Area_code Area State 156 Mumbai Maharashtra 221 Bengaluru Karnataka 223 Pune Maharashtra Primary Key in this table Foreign key in this table