SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
1.4
Books and Materials
 Reference books:
Abraham Silberschatz, Henry F Korth and S. Sudarshan, Database
System Concepts 6th Edition, 2011:Tata McGraw-Hill
Lecture Materials:
 Lecture Slides
 Additional readings
1.6
 Introduction
 E.R Model
 Relational Database Design
 Formal Relational Query Language
 Transaction management
 Concurrency Control
 Database Recovery
 Indexing and Hashing
Course Syllabus: Tentative
1.8
 Data
 Set of values representing some information.
 Ex: age is 21 years, blue shirt, today’s temp. is 30oC
 Salary of ₹20,000, height of john 6’2”, . . .
 Database (DB)
 Is a collection of interrelated data (pertaining to
one organization or business house) organized in
a meaningful way.
 Database Management System (DBMS)
 Is a collection of interrelated data and a set of
programs to store/retrieve those data.
What is What?
1.9
DBMS Package
 A software package designed to define,
manipulate, retrieve and manage data in a
database in a user friendly environment
1.10
Database Management System (DBMS)
 DBMS contains information about a particular
enterprise
 Collection of interrelated data
 Set of programs to access the data
 An environment that is both convenient and
efficient to use
1.11
Applications
 Database Applications:
 Banking: transactions
 Airlines: reservations, schedules
 Universities: registration, grades
 Sales: customers, products, purchases
 Online retailers: order tracking, customized recommendations
 Manufacturing: production, inventory, orders, supply chain
 Human resources: employee records, salaries, tax deductions
 . . .
 Databases can be very large
 Databases touch all aspects of our lives
1.12
Database Use
 In early days, people used to interact
with the database indirectly
 Printed reports such as credit card
statements, bank teller, reservation agents
 Currently, people interact with the
database directly
 ATM
 E-Shopping
 E-Banking
 E-Application
1.13
University Database Example
 Application program examples
 Add new students, instructors, and courses
 Register students for courses, and generate
class rosters
 Assign grades to students, compute grade
point averages (GPA) and generate
transcripts
 In the early days, database applications were
built directly on top of file systems
1.14
Traditional Approach-file system
1.15
Drawbacks of using file systems-I
 Data redundancy and inconsistency
 Multiple file formats: due to multiple programmers
over a period of time.
 Duplication of information in different files: A
student record (name , regno, address, …) is
maintained in CSIT, Maths, Phy, ECE depts.
 If address info is changed but not reflected every
where, then data becomes inconsistent.
 Difficulty in accessing data
 Need to write a new program to carry out each
new task
 Ex: find students from out side odisha?
1.16
Drawbacks of using file systems-II
 Data isolation
 Data scattered in various files possibly of different formats.
Writing application program to retrieve required data
becomes impossible.
 Integrity problems
 Integrity constraints are in program code rather than being
stated explicitly with data e.g.,
 account balance > 0
 Reg No can't be blank
 Age can't be a negative number
 etc.
 Hard to add new constraints or change existing ones as it
needs application program modification.
1.17
Drawbacks of using file systems-III
 Atomicity problems (of updates)
 Failures may cause an inconsistent state with partial updates carried
out.
 Ex: Transfer of funds from one account to another should either
complete or not happen at all (debited but not credited)
 Concurrent access anomalies ( by multiple users)
 Concurrent access needed for performance
 Uncontrolled concurrent accesses can lead to inconsistencies
 Example: Two people reading a balance (say 100) and updating
it by withdrawing money (say 50 each) at the same time
 Security problems
 Hard to provide user access to some, but not all, data
 i.e. defining user roles
Database systems offer solutions to all the above problems
1.18
Data Abstraction
 A major purpose of database system is to
provide users with an abstract view of the
data.
 That is the system hides certain details how the
data are stored and maintained.
 The abstraction helps avoiding mishandling of
data by normal database users and makes it
simple and
 Makes it convenient to access and understand
the information
1.19
 Map
Example Abstraction
 is an abstraction of a geographical region (easy to
understand the world)
 Riding a bike
 No abstraction: Read and understand the
mechanism of IC engine, gear mechanism, brake
system, electrical section . . .
 Abstraction: Understand only the use of
accelerator, gear and brake leavers. (life is simple)
1.20
Three Schema architecture of DBMS
Application
Program
View /
. . .
External Level/Schema
Logical / Conceptual
Level/Schema
Physical / Internal
Level/Schema
Storage Media
View1 View3
View2 View n
1.21
Data abstraction in Database
 Database system provide three different levels
of abstraction
 Physical level / Internal Schema:
 The lowest level that describes how data are
actually stored.
 It describes the complex low-level data
structures in detail.
 Used by package developers
1.22
Levels of Abstraction
 Logical level / Conceptual Schema: describes what
data are stored in database, and the relationships
among the data.
type instructor = record
ID : string;
name : string;
dept_name : string;
salary : integer;
end;
 Deals with simple structures (tables) to store database information.
 Database administrators use this abstraction without knowing the
details of complex physical structure called physical data
independence.
1.23
Levels of Abstraction
 View level / External Schema: highest level of
abstraction that presents a specific portion of the
database view for different users.
 This level may contain many different views of the
database required by different users.
 All these views are mapped on a single unified
conceptual level.
 Application programs hide details of data types. Views
can also hide information (such as an employee’s
salary) for security purposes.
 User access layer that is used to simplify the interaction
between a user and the database.
1.24
Instances and Schemas
 Database Instance (variables values)
 The collection of database information at a given
time is called the instance of the database of that
time. (Actual content of the database)
 Ex: Reg: 001, Name: john, Branch: CSIT, Sem: 4, . . .
 With database operations like, insertion, deletion,
updation, the instance changes
 Ex: Reg: 001, Name: john, Branch: CSIT, Sem: 5, . . .
 Reg: 002, Name: Smith, Branch: CSIT, Sem: 5, . . .
 Database Schema (types, variables)
 It refers to the overall design of the database
 Depending upon the level of abstraction, there
exists 3 types of database schemas
1.25
Three level Schemas
 Physical schema– the overall physical structure of the
database
 Logical Schema – the overall logical structure of the
database
 Ex: The database consists of information about a set
of customers and accounts in a bank and the
relationship between them
Analogous to type information of a variable in a
program
 External Schema / View – At the external level, we find
multiple views of the database referred as sub-
schemas
 Schema changes infrequently than instances.
1.26
Data Independence
 Data Independence – Any changes made to the
lower-level schema does not affect the higher level
schema.
 Physical Data Independence – the ability to modify the
physical schema without changing the logical schema
 Applications depend on the logical schema
 In general, the interfaces between the various levels
and components should be well defined so that
changes in some parts do not seriously influence
others.
 Logical Data Independence – Any change made to
the conceptual level schema, do not require any
change modification to the external schema.
1.27
Database Language
 The language used for database is broadly classified
into two categories of languages.
 Data Definition Language (DDL)– basically used for
defining/modifying the logical schema.
 Data Manipulation Language (DML) – used to access
and manipulate the database instance.
 In practice, these are not two separate languages,
rather they are the two parts of the same commercial
database language called Structural Query Language
(SQL)
 That is SQL integrates all
1.28
Data Definition Language (DDL)
 Specification notation for defining the database schema
(create, alter, drop, rename, …)
Example: create table instructor (
ID char(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2))
 DDL compiler generates a set of table templates stored in a data
dictionary
 Data dictionary contains metadata (i.e., data about data)
 Database schema
 Integrity constraints
 Primary key (ID uniquely identifies instructors)
 Authorization
 Who can access what
1.29
Data Manipulation Language (DML)
 Language for accessing and manipulating the data organized
by the appropriate data model
 DML also known as query language
 Operations supported: insert, delete, update, retrieve
 Two classes of languages
 Pure – used for proving properties about computational
power and for optimization
 Relational Algebra
 Tuple relational calculus
 Domain relational calculus
 Commercial – used in commercial systems
 SQL is the most widely used commercial language
1.30
DML-II
 DML can be of two types
 Procedural DML: Requires user to specify what data
are needed and how to get those data?
 Declarative / non-procedural DML: Requires user to
specify what data are needed? without specifying
how to get those data.
 It is easy to use and popular
 When DML is executed, the meta data present in
the data dictionary are referred to check the
validity of the intended DML operation.
1.31
 Naive users
Database Users
 The don’t have much knowledge on databases
 Application Programmers
 Those have developed the application.
 Sophisticated users
 They are not direct users, they are analyst,
knowledge workers.
 Specialized users (Database administrators)
 One of the primary objective of database system
is to have centralized control over the entire
database and the application programmes. It is
achieved by database administrators.
1.32
Database Administrators (DBA)
 DBA may be a person or a group of persons in an
organization acts as the manager of the database
and take full responsibility of the database of that
organization.
 The important roles and responsibilities of DBA are
 Defining the Database schema
 Defining the storage structure and access methodology
 Modifying the database schema and storage organization
 Granting authorization and ensuring security
 Monitoring the database performance
 Routine maintenance of database
1.33
Data Model
 A collection of conceptual tools for describing
 Data
 Data relationships
 Data semantics
 Data constraints
 The data models can be classified into following four
different categories
 Relational model
 Entity-Relationship data model (mainly for database design)
 Object-based data models (Object-oriented and Object-
relational)
 Semi-structured data model (XML)
 Other older models:
 Network model
 Hierarchical model
1.34
End of Chapter
Thank You

Contenu connexe

Similaire à LectDBS_1.pdf

Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureMustafa Kamel Mohammadi
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptxAmit Vyas
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfMrjJoker1
 
M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4Syed Ariful Islam Emon
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database systemsamreenghauri786
 
Advanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptAdvanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptBikalAdhikari4
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxAnmolThakur67
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfSameerKhanPathan7
 

Similaire à LectDBS_1.pdf (20)

Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and Architecture
 
Dbms 1
Dbms 1Dbms 1
Dbms 1
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptx
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 
M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
Module-1.pptx
Module-1.pptxModule-1.pptx
Module-1.pptx
 
Dbms
DbmsDbms
Dbms
 
Data base management system
Data base management systemData base management system
Data base management system
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
Advanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptAdvanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.ppt
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Unit 1
Unit 1Unit 1
Unit 1
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 

Dernier

8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Availabledollysharma2066
 
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyNitya salvi
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Websitemark11275
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...amitlee9823
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...gajnagarg
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...amitlee9823
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...amitlee9823
 
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...gajnagarg
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...amitlee9823
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...nirzagarg
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...Delhi Call girls
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...amitlee9823
 
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.Nitya salvi
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja Nehwal
 

Dernier (20)

8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 

LectDBS_1.pdf

  • 1. 1.4 Books and Materials  Reference books: Abraham Silberschatz, Henry F Korth and S. Sudarshan, Database System Concepts 6th Edition, 2011:Tata McGraw-Hill Lecture Materials:  Lecture Slides  Additional readings
  • 2. 1.6  Introduction  E.R Model  Relational Database Design  Formal Relational Query Language  Transaction management  Concurrency Control  Database Recovery  Indexing and Hashing Course Syllabus: Tentative
  • 3. 1.8  Data  Set of values representing some information.  Ex: age is 21 years, blue shirt, today’s temp. is 30oC  Salary of ₹20,000, height of john 6’2”, . . .  Database (DB)  Is a collection of interrelated data (pertaining to one organization or business house) organized in a meaningful way.  Database Management System (DBMS)  Is a collection of interrelated data and a set of programs to store/retrieve those data. What is What?
  • 4. 1.9 DBMS Package  A software package designed to define, manipulate, retrieve and manage data in a database in a user friendly environment
  • 5. 1.10 Database Management System (DBMS)  DBMS contains information about a particular enterprise  Collection of interrelated data  Set of programs to access the data  An environment that is both convenient and efficient to use
  • 6. 1.11 Applications  Database Applications:  Banking: transactions  Airlines: reservations, schedules  Universities: registration, grades  Sales: customers, products, purchases  Online retailers: order tracking, customized recommendations  Manufacturing: production, inventory, orders, supply chain  Human resources: employee records, salaries, tax deductions  . . .  Databases can be very large  Databases touch all aspects of our lives
  • 7. 1.12 Database Use  In early days, people used to interact with the database indirectly  Printed reports such as credit card statements, bank teller, reservation agents  Currently, people interact with the database directly  ATM  E-Shopping  E-Banking  E-Application
  • 8. 1.13 University Database Example  Application program examples  Add new students, instructors, and courses  Register students for courses, and generate class rosters  Assign grades to students, compute grade point averages (GPA) and generate transcripts  In the early days, database applications were built directly on top of file systems
  • 10. 1.15 Drawbacks of using file systems-I  Data redundancy and inconsistency  Multiple file formats: due to multiple programmers over a period of time.  Duplication of information in different files: A student record (name , regno, address, …) is maintained in CSIT, Maths, Phy, ECE depts.  If address info is changed but not reflected every where, then data becomes inconsistent.  Difficulty in accessing data  Need to write a new program to carry out each new task  Ex: find students from out side odisha?
  • 11. 1.16 Drawbacks of using file systems-II  Data isolation  Data scattered in various files possibly of different formats. Writing application program to retrieve required data becomes impossible.  Integrity problems  Integrity constraints are in program code rather than being stated explicitly with data e.g.,  account balance > 0  Reg No can't be blank  Age can't be a negative number  etc.  Hard to add new constraints or change existing ones as it needs application program modification.
  • 12. 1.17 Drawbacks of using file systems-III  Atomicity problems (of updates)  Failures may cause an inconsistent state with partial updates carried out.  Ex: Transfer of funds from one account to another should either complete or not happen at all (debited but not credited)  Concurrent access anomalies ( by multiple users)  Concurrent access needed for performance  Uncontrolled concurrent accesses can lead to inconsistencies  Example: Two people reading a balance (say 100) and updating it by withdrawing money (say 50 each) at the same time  Security problems  Hard to provide user access to some, but not all, data  i.e. defining user roles Database systems offer solutions to all the above problems
  • 13. 1.18 Data Abstraction  A major purpose of database system is to provide users with an abstract view of the data.  That is the system hides certain details how the data are stored and maintained.  The abstraction helps avoiding mishandling of data by normal database users and makes it simple and  Makes it convenient to access and understand the information
  • 14. 1.19  Map Example Abstraction  is an abstraction of a geographical region (easy to understand the world)  Riding a bike  No abstraction: Read and understand the mechanism of IC engine, gear mechanism, brake system, electrical section . . .  Abstraction: Understand only the use of accelerator, gear and brake leavers. (life is simple)
  • 15. 1.20 Three Schema architecture of DBMS Application Program View / . . . External Level/Schema Logical / Conceptual Level/Schema Physical / Internal Level/Schema Storage Media View1 View3 View2 View n
  • 16. 1.21 Data abstraction in Database  Database system provide three different levels of abstraction  Physical level / Internal Schema:  The lowest level that describes how data are actually stored.  It describes the complex low-level data structures in detail.  Used by package developers
  • 17. 1.22 Levels of Abstraction  Logical level / Conceptual Schema: describes what data are stored in database, and the relationships among the data. type instructor = record ID : string; name : string; dept_name : string; salary : integer; end;  Deals with simple structures (tables) to store database information.  Database administrators use this abstraction without knowing the details of complex physical structure called physical data independence.
  • 18. 1.23 Levels of Abstraction  View level / External Schema: highest level of abstraction that presents a specific portion of the database view for different users.  This level may contain many different views of the database required by different users.  All these views are mapped on a single unified conceptual level.  Application programs hide details of data types. Views can also hide information (such as an employee’s salary) for security purposes.  User access layer that is used to simplify the interaction between a user and the database.
  • 19. 1.24 Instances and Schemas  Database Instance (variables values)  The collection of database information at a given time is called the instance of the database of that time. (Actual content of the database)  Ex: Reg: 001, Name: john, Branch: CSIT, Sem: 4, . . .  With database operations like, insertion, deletion, updation, the instance changes  Ex: Reg: 001, Name: john, Branch: CSIT, Sem: 5, . . .  Reg: 002, Name: Smith, Branch: CSIT, Sem: 5, . . .  Database Schema (types, variables)  It refers to the overall design of the database  Depending upon the level of abstraction, there exists 3 types of database schemas
  • 20. 1.25 Three level Schemas  Physical schema– the overall physical structure of the database  Logical Schema – the overall logical structure of the database  Ex: The database consists of information about a set of customers and accounts in a bank and the relationship between them Analogous to type information of a variable in a program  External Schema / View – At the external level, we find multiple views of the database referred as sub- schemas  Schema changes infrequently than instances.
  • 21. 1.26 Data Independence  Data Independence – Any changes made to the lower-level schema does not affect the higher level schema.  Physical Data Independence – the ability to modify the physical schema without changing the logical schema  Applications depend on the logical schema  In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others.  Logical Data Independence – Any change made to the conceptual level schema, do not require any change modification to the external schema.
  • 22. 1.27 Database Language  The language used for database is broadly classified into two categories of languages.  Data Definition Language (DDL)– basically used for defining/modifying the logical schema.  Data Manipulation Language (DML) – used to access and manipulate the database instance.  In practice, these are not two separate languages, rather they are the two parts of the same commercial database language called Structural Query Language (SQL)  That is SQL integrates all
  • 23. 1.28 Data Definition Language (DDL)  Specification notation for defining the database schema (create, alter, drop, rename, …) Example: create table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2))  DDL compiler generates a set of table templates stored in a data dictionary  Data dictionary contains metadata (i.e., data about data)  Database schema  Integrity constraints  Primary key (ID uniquely identifies instructors)  Authorization  Who can access what
  • 24. 1.29 Data Manipulation Language (DML)  Language for accessing and manipulating the data organized by the appropriate data model  DML also known as query language  Operations supported: insert, delete, update, retrieve  Two classes of languages  Pure – used for proving properties about computational power and for optimization  Relational Algebra  Tuple relational calculus  Domain relational calculus  Commercial – used in commercial systems  SQL is the most widely used commercial language
  • 25. 1.30 DML-II  DML can be of two types  Procedural DML: Requires user to specify what data are needed and how to get those data?  Declarative / non-procedural DML: Requires user to specify what data are needed? without specifying how to get those data.  It is easy to use and popular  When DML is executed, the meta data present in the data dictionary are referred to check the validity of the intended DML operation.
  • 26. 1.31  Naive users Database Users  The don’t have much knowledge on databases  Application Programmers  Those have developed the application.  Sophisticated users  They are not direct users, they are analyst, knowledge workers.  Specialized users (Database administrators)  One of the primary objective of database system is to have centralized control over the entire database and the application programmes. It is achieved by database administrators.
  • 27. 1.32 Database Administrators (DBA)  DBA may be a person or a group of persons in an organization acts as the manager of the database and take full responsibility of the database of that organization.  The important roles and responsibilities of DBA are  Defining the Database schema  Defining the storage structure and access methodology  Modifying the database schema and storage organization  Granting authorization and ensuring security  Monitoring the database performance  Routine maintenance of database
  • 28. 1.33 Data Model  A collection of conceptual tools for describing  Data  Data relationships  Data semantics  Data constraints  The data models can be classified into following four different categories  Relational model  Entity-Relationship data model (mainly for database design)  Object-based data models (Object-oriented and Object- relational)  Semi-structured data model (XML)  Other older models:  Network model  Hierarchical model