SlideShare a Scribd company logo
Database
> Shared collection of logically related data (and a description of this
data), designed to meet the information needs of an organization.
> Systemcatalog (metadata) provides description of data to enable
program–data independence.
> Logically related data comprises entities, attributes, and relationships
of an organization’s information.
Database Management System(DBMS)
> A softwaresystemthatenables users to define, create, maintain, and
control access to the database.
> (Database) application program: a computer program that interacts
with databaseby issuing an appropriaterequest (SQL statement) to the
DBMS.
Database Approach
Data definitionlanguage (DDL).
>Permits specification of data types, structures and any data constraints.
>All specifications are stored in the database.
Data manipulationlanguage (DML).
>General enquiry facility (query language) of the data.
Components of DBMS Environment
Hardware
Can range froma PC to a network of computers.
Software
DBMS, operating system, network software(if necessary) and also the
application programs.
Data
Used by the organization and a description of this data called the
schema
Procedures
Instructions and rules that should be applied to the design and useof
the databaseand DBMS.
People
Roles in the Database Environment
>Data Administrator (DA)
>Database Administrator (DBA)
>Database Designers (Logicaland Physical)
>Application Programmers
>End Users (naive and sophisticated)
Advantages of DBMSs
>Control of data redundancy
>Data consistency
>More information fromthe same amount of data
>Sharing of data
>Improved data integrity
>Improved security
>Enforcement of standards
>Economy of scale
>Balance conflicting requirements
>Improved data accessibility and responsiveness
>Increased productivity
>Improved maintenancethrough data independence
>Increased concurrency
>Improved backup and recovery services
Disadvantages of DBMSs
>Complexity
>Size
>Cost of DBMS
>Additional hardwarecosts
>Cost of conversion
>Performance
>Higher impact of a failure
ANSI-SPARC Architecture
External Level
*Users’ view of the database.
*Describes that part of databasethat is relevant to a particular user.
Conceptual Level
*Community view of the database.
*Describes whatdata is stored in databaseand relationships among the
data.
Internal Level
*Physicalrepresentation of the databaseon the computer.
*Describes how the data is stored in the database.
Relational Keys
Superkey
* An attribute, or set of attributes, that uniquely identifies a tuple within
a relation.
Candidate Key
* Superkey (K) such that no proper subsetis a superkey within the
relation.
* In each tuple of R, values of K uniquely identify that tuple
(uniqueness).
* No proper subsetof K has the uniqueness property (irreducibility).
Primary Key
*Candidate key selected to identify tuples uniquely within relation.
Alternate Keys
*Candidate keys that are not selected to be primary key.
ForeignKey
*Attribute, or set of attributes, within one relation that matches
candidate key of some(possibly same) relation.
Integrity Constraints
Null
> Represents value for an attribute that is currently unknown or not
applicable for tuple.
> Deals with incomplete or exceptional data.
> Represents the absence of a value and is not the same as zero or
spaces, which are values.
Entity Integrity
>In a base relation, no attribute of a primary key can be null.
Referential Integrity
>If foreign key exists in a relation, either foreign key value mustmatch a
candidate key value of sometuple in its home relation or foreign key
value must be wholly null.
General Constraints
>Additional rules specified by users or databaseadministrators that
define or constrain someaspect of the enterprise.
Entity Type
Strong Entity Type
Entity type that is not existence-dependent on some other entity type.
Weak Entity Type
Entity type that is existence-dependent on some other entity type.

More Related Content

What's hot

Data Modeling Basics
Data Modeling BasicsData Modeling Basics
Data Modeling Basics
renuindia
 
Database Session
Database SessionDatabase Session
Database Session
SiliconExpert Technologies
 
Database and Math Relations
Database and Math RelationsDatabase and Math Relations
Database and Math Relations
Prof Ansari
 
Bt0066 dbms
Bt0066 dbmsBt0066 dbms
Bt0066 dbms
smumbahelp
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
Ovais Imtiaz
 
Entity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMSEntity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMS
Prof Ansari
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
Eddyzulham Mahluzydde
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.
Cloudbells.com
 
Rdbms
RdbmsRdbms
RDBMS_Unit 01
RDBMS_Unit 01RDBMS_Unit 01
RDBMS_Unit 01
Prashanth Shivakumar
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Relational model
Relational modelRelational model
Relational model
WBUTTUTORIALS
 
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal GulatiFundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
Data models
Data modelsData models
Data models
Anakin Skylight
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
Tetala Vishnu Vardhan Reddy
 
Bt0066 dbms
Bt0066 dbmsBt0066 dbms
Bt0066 dbms
smumbahelp
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
eidah20
 

What's hot (20)

Data Modeling Basics
Data Modeling BasicsData Modeling Basics
Data Modeling Basics
 
Database Session
Database SessionDatabase Session
Database Session
 
Database and Math Relations
Database and Math RelationsDatabase and Math Relations
Database and Math Relations
 
Bt0066 dbms
Bt0066 dbmsBt0066 dbms
Bt0066 dbms
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
 
Entity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMSEntity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMS
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.
 
Rdbms
RdbmsRdbms
Rdbms
 
RDBMS_Unit 01
RDBMS_Unit 01RDBMS_Unit 01
RDBMS_Unit 01
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Relational model
Relational modelRelational model
Relational model
 
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal GulatiFundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Data models
Data modelsData models
Data models
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
 
Bt0066 dbms
Bt0066 dbmsBt0066 dbms
Bt0066 dbms
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
 

Similar to Database note for 4th semester Notes

PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
traderbear1
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
Jananath Banuka
 
RDBMS
RDBMSRDBMS
ICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short NotesICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short Notes
Abdul Haseeb
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
Hitesh Mohapatra
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
sheibansari
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
adukkas
 
Software engineering srs, dfd
Software engineering srs, dfdSoftware engineering srs, dfd
Software engineering srs, dfd
Dr. Anthony Vincent. B
 
Database management systems
Database management systemsDatabase management systems
Database management systems
Ravindra Singh Gohil
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
Ismail Mukiibi
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
Upendra Reddy Vuyyuru
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
Balasingham Karthiban
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
Amiya9439793168
 
Dbms unit i
Dbms unit iDbms unit i
Dbms unit i
Arnav Chowdhury
 
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
 
Codd’s rule.pptx
Codd’s rule.pptxCodd’s rule.pptx
Codd’s rule.pptx
NeeleshBhattacharjee1
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdf
LeandroJrErcia
 
View of data DBMS
View of data DBMSView of data DBMS
View of data DBMS
Rahul Narang
 

Similar to Database note for 4th semester Notes (20)

PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
 
RDBMS
RDBMSRDBMS
RDBMS
 
ICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short NotesICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short Notes
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
 
Software engineering srs, dfd
Software engineering srs, dfdSoftware engineering srs, dfd
Software engineering srs, dfd
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
Dbms unit i
Dbms unit iDbms unit i
Dbms unit i
 
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
 
Codd’s rule.pptx
Codd’s rule.pptxCodd’s rule.pptx
Codd’s rule.pptx
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdf
 
View of data DBMS
View of data DBMSView of data DBMS
View of data DBMS
 

Recently uploaded

E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 
fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.
AnkitaPandya11
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
TaghreedAltamimi
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
What next after learning python programming basics
What next after learning python programming basicsWhat next after learning python programming basics
What next after learning python programming basics
Rakesh Kumar R
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 

Recently uploaded (20)

E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 
fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
What next after learning python programming basics
What next after learning python programming basicsWhat next after learning python programming basics
What next after learning python programming basics
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 

Database note for 4th semester Notes

  • 1. Database > Shared collection of logically related data (and a description of this data), designed to meet the information needs of an organization. > Systemcatalog (metadata) provides description of data to enable program–data independence. > Logically related data comprises entities, attributes, and relationships of an organization’s information. Database Management System(DBMS) > A softwaresystemthatenables users to define, create, maintain, and control access to the database. > (Database) application program: a computer program that interacts with databaseby issuing an appropriaterequest (SQL statement) to the DBMS. Database Approach Data definitionlanguage (DDL). >Permits specification of data types, structures and any data constraints. >All specifications are stored in the database. Data manipulationlanguage (DML). >General enquiry facility (query language) of the data. Components of DBMS Environment Hardware Can range froma PC to a network of computers. Software DBMS, operating system, network software(if necessary) and also the application programs. Data Used by the organization and a description of this data called the schema Procedures Instructions and rules that should be applied to the design and useof the databaseand DBMS. People
  • 2. Roles in the Database Environment >Data Administrator (DA) >Database Administrator (DBA) >Database Designers (Logicaland Physical) >Application Programmers >End Users (naive and sophisticated) Advantages of DBMSs >Control of data redundancy >Data consistency >More information fromthe same amount of data >Sharing of data >Improved data integrity >Improved security >Enforcement of standards >Economy of scale >Balance conflicting requirements >Improved data accessibility and responsiveness >Increased productivity >Improved maintenancethrough data independence >Increased concurrency >Improved backup and recovery services Disadvantages of DBMSs >Complexity >Size >Cost of DBMS >Additional hardwarecosts >Cost of conversion >Performance >Higher impact of a failure ANSI-SPARC Architecture External Level *Users’ view of the database. *Describes that part of databasethat is relevant to a particular user. Conceptual Level
  • 3. *Community view of the database. *Describes whatdata is stored in databaseand relationships among the data. Internal Level *Physicalrepresentation of the databaseon the computer. *Describes how the data is stored in the database. Relational Keys Superkey * An attribute, or set of attributes, that uniquely identifies a tuple within a relation. Candidate Key * Superkey (K) such that no proper subsetis a superkey within the relation. * In each tuple of R, values of K uniquely identify that tuple (uniqueness). * No proper subsetof K has the uniqueness property (irreducibility). Primary Key *Candidate key selected to identify tuples uniquely within relation. Alternate Keys *Candidate keys that are not selected to be primary key. ForeignKey *Attribute, or set of attributes, within one relation that matches candidate key of some(possibly same) relation. Integrity Constraints Null > Represents value for an attribute that is currently unknown or not applicable for tuple. > Deals with incomplete or exceptional data. > Represents the absence of a value and is not the same as zero or spaces, which are values. Entity Integrity >In a base relation, no attribute of a primary key can be null. Referential Integrity >If foreign key exists in a relation, either foreign key value mustmatch a candidate key value of sometuple in its home relation or foreign key value must be wholly null. General Constraints >Additional rules specified by users or databaseadministrators that define or constrain someaspect of the enterprise.
  • 4. Entity Type Strong Entity Type Entity type that is not existence-dependent on some other entity type. Weak Entity Type Entity type that is existence-dependent on some other entity type.