SlideShare uma empresa Scribd logo
1 de 33
Introduction to Database Systems
Lecture #1
Dated: 19-10-2007
 Classes: 01:30 PM – 03:00 PM Thursday
11:30 AM – 01:00 PM Friday
 Instructor: Nauman Riaz Chaudhry
 Cell: 0300-9503200
 Email: nauman.riaz@gmail.com
Course Overview
 Background and History
 Data Models
 E/R Model
 Relational Model
 Object Oriented Model
 XML and Database
 Database Programming
 Relational Algebra
 SQL
 Object Oriented
Textbook
 C. J. Date “An Introduction to Database Systems
”, Seventh Edition, Pearson Education
 Jeffrey D. Ullman and Jennifer Widom, “A First Course
in Database Systems”, Second Edition, Prentice Hall,
2001
 Other useful textbooks:
 Fundamentals of Database Systems (Elmasri and Navathe)
 Database System Concepts (Abraham Siberschatz, Henry
F.Korth and S.Sudarshan)
 Database Management Systems (Ramakrishnan)
Tentative Schedule
 Introduction (1-2 classes)
 E/R Model (2-3 classes)
 Relational Model (3-4 classes)
 Other Models (2-3 classes)
 Relational Algebra (3-4 classes)
 SQL (4-5 classes)
 Constraints and triggers (1-2 classes)
 System Aspects of SQL (3-4 classes)
 XML (3-4 classes)
Course Load
 3 - 5 homework assignments
 1 project
 5 Quiz's
 A Midterm Exam
 A Final Exam
Homework and project assignments are due in the
beginning of class one or two weeks that follows. Late
homework will not be accepted, and a score of
zero will be assigned for that assignment.
Course Policy
 exams: no access to any material nor discussion with
anyone (except the instructor) is allowed.
 assignments: solutions should be developed
independently. Stealing, giving or receiving any code
drawings, diagrams, text, or designs from another
person is not allowed.
 max penalty for academic dishonesty: F in the
course; reported to the university.
Grading Policy
 The grade will be calculated using the following
weights:
Homework and Quizzes 15%
Project 10%
Mid-term Exams 25%
Final Exam 50%
 Starting from now …
Something completely different!
What is Database?
 Essentially, a database is a set of data, or a
collection of information. These data are
related.
 Examples:
Student Information
human genome sequence
company products information
More Examples
 Airline Reservation Systems
 Reservations by a single customer on a single flight,
including such information as assigned seat or meal
preference
 Information about the flight, the airports thy fly from and to,
the departure and arrival times, etc.
 Ticket prices, requirements, and availability
 Banking Systems
 Customers, accounts, loans and the balances
 Deposit or withdraw money
What’s DBMS?
 DataBase Management System (DBMS)
A powerful tool for creating and manage large
amounts of data efficiently and allowing it to persist
over long periods of time, safely. It also provides
efficient accesses to multiple users.
It is used to manage databases.
DBMS capabilities
 Persistent Storage
 Programming Interface
 Transaction management
DBMS capabilities (Cont.)
 Allow users to create databases and specify their
schema, using data-definition language.
 Allow users to query and modify the data, using data-
manipulation language.
 Support the storage of very large amount of data over
a long period.
 Data consistency and failure recovery.
File System
 Why not using file system?
 Can be used to store data information for a long period as
well.
 Consistency and failure recovery capability
 Problems:
 no query language, no efficient access for a data item
 support of the creation of database is limited
 consistency control is not adequate
Management of Data is complex
DBMS Evolution
 File Systems
 Hierarchical Model (Tree-based)
 Network Model (Graph-based)
 Relational Model
 Object Oriented Model
 Object/Relational Model
Relational Database System
 Ted Codd 1970
 The view of data: relations
relations, tuples, attributes
tables, rows, columns
 Queries could be expressed in high level
language, it is simple and efficient
 It is widely used in most commercial systems
Example 1.1
AccountNo Balance Type
12345 1000.00 Savings
67890 2846.92 checking
… … …
Bank Account Information
(Accounts)
Example 1.1 (Cont.)
 Check the balance
SELECT balance
FROM Accounts
WHERE accountNo= 67890
 Check the accountNo
SELECT accountNo
From Accounts
WHERE type=‘savings’ AND balance < 0
Major DBMS Products
 Oracle
 IBM: DB2, Informix
 Microsoft: SQL Server, Access
 Sybase
 MySQL
 Postgres
All are "relational" (or "object-relational") database
systems at their core.
Schema versus data
 Schema describes how data is to be
structured - defined at set-up time, rarely
changes (part of the "metadata")
 Data is actual "instance" of database, may
change rapidly
 Comparable to types and variables in
programming languages
Data Definition Language
(DDL)
 Commands for setting up schema of
database
 Process of designing schema can be
complex, may use design methodology
and/or tool
Data Manipulation Language
(DML)
 Commands to manipulate data in database:
RETRIEVE, INSERT, DELETE, MODIFY
 Also called "query language"
People
 DBMS implementer: builds system
 Database designer: establishes schema
 Database administrator: loads data,
keeps whole thing running
 Database user: queries/modifies data
DBMS Evolution Trends
 Size
smaller and smaller
using personal computer, similar to applications such as
spreadsheet and word processing
bigger and bigger
terabytes or even petabytes data, using tertiary storage and parallel
computing techniques.
 Architecture
Client-server architecture (Two-Tier)
client database Server
Multi-Tier architecture:
client application server database server
DBMS Trends (Cont.)
 Versatile Data type
integers, characters
small storage requirement
videos, audios
large storage requirement
 Integration
Data warehouses, data mining
Overview of DBMS
 DDL commands
DBA DDL Complier Execution engine …
 Query Processing
 Answering the query
User Query Compiler Execution engine …
 Transaction processing
Storage and Buffer Management
 Buffer manager
 Storage manager
 Data: the contents of the database
 Metadata (Schema) : structure of the database
 Statistics: data properties
 Indexes
Transaction Processing
 Transaction manager
 Logging
 Concurrency control
 Deadlock resolution
Query Processor
 Query complier
 Query parser
 Query preprocessor
 Query optimizer
 Execution engine
Outline of Database System
 Database design
Determine the database structure
 Database programming
Perform database operations
 Database system implementation
Build the database
Next Class
 E/R Concepts

Mais conteúdo relacionado

Mais procurados

Introduction To Database Management System
Introduction To Database Management SystemIntroduction To Database Management System
Introduction To Database Management Systemcpjcollege
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsBHARATH KUMAR
 
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,...Dipen Parmar
 
Database management system
Database management system   Database management system
Database management system 9535814851
 
Mca ii-dbms- u-ii-the relational database model
Mca ii-dbms- u-ii-the relational database modelMca ii-dbms- u-ii-the relational database model
Mca ii-dbms- u-ii-the relational database modelRai University
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Atik Israk
 
Database Concepts and Components
Database Concepts and ComponentsDatabase Concepts and Components
Database Concepts and ComponentsRIAH ENCARNACION
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemAmiya9439793168
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 
What is data model? And types.
What is data model? And types.What is data model? And types.
What is data model? And types.774477
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Conceptsadukkas
 
Database management system
Database management systemDatabase management system
Database management systemSayed Ahmed
 

Mais procurados (20)

Introduction To Database Management System
Introduction To Database Management SystemIntroduction To Database Management System
Introduction To Database Management System
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Database language
Database languageDatabase language
Database language
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
 
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,...
 
Ch1
Ch1Ch1
Ch1
 
Database management system
Database management system   Database management system
Database management system
 
Database
DatabaseDatabase
Database
 
Mca ii-dbms- u-ii-the relational database model
Mca ii-dbms- u-ii-the relational database modelMca ii-dbms- u-ii-the relational database model
Mca ii-dbms- u-ii-the relational database model
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
 
Database Concepts and Components
Database Concepts and ComponentsDatabase Concepts and Components
Database Concepts and Components
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
Database concepts
Database conceptsDatabase concepts
Database concepts
 
What is data model? And types.
What is data model? And types.What is data model? And types.
What is data model? And types.
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
 
Database management system
Database management systemDatabase management system
Database management system
 

Destaque

Ao6 Database
Ao6   DatabaseAo6   Database
Ao6 DatabaseBigKev
 
Databaseconcepts
DatabaseconceptsDatabaseconcepts
Databaseconceptsdilipkkr
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)welcometofacebook
 
Introduction to Database Concepts
Introduction to Database ConceptsIntroduction to Database Concepts
Introduction to Database ConceptsRosalyn Lemieux
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)Dimara Hakim
 
Database management system
Database management systemDatabase management system
Database management systemRizwanHafeez
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Beat Signer
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 

Destaque (15)

Ao6 Database
Ao6   DatabaseAo6   Database
Ao6 Database
 
Databaseconcepts
DatabaseconceptsDatabaseconcepts
Databaseconcepts
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)
 
Introduction to Database Concepts
Introduction to Database ConceptsIntroduction to Database Concepts
Introduction to Database Concepts
 
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)
 
Database management system
Database management systemDatabase management system
Database management system
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 

Semelhante a Introduction to Database Systems Lecture 1

Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01
Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01
Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01Raza Baloch
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1Sonia Mim
 
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 introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfparveen204931475
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
 
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
 
Introduction to DBMS and SQL Overview
Introduction to DBMS and SQL OverviewIntroduction to DBMS and SQL Overview
Introduction to DBMS and SQL OverviewPrabu U
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)Varish Bajaj
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptxAmit Vyas
 

Semelhante a Introduction to Database Systems Lecture 1 (20)

DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 
Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01
Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01
Cdocumentsandsettingsuser1desktop2 dbmsexamples-091012013049-phpapp01
 
DBMS - Introduction
DBMS - IntroductionDBMS - Introduction
DBMS - Introduction
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
 
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 introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Module-1.pptx
Module-1.pptxModule-1.pptx
Module-1.pptx
 
Dbms unit01
Dbms unit01Dbms unit01
Dbms unit01
 
27 fcs157 l1
27 fcs157 l127 fcs157 l1
27 fcs157 l1
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
 
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
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
LectDBS_1.pdf
LectDBS_1.pdfLectDBS_1.pdf
LectDBS_1.pdf
 
Introduction to DBMS and SQL Overview
Introduction to DBMS and SQL OverviewIntroduction to DBMS and SQL Overview
Introduction to DBMS and SQL Overview
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptx
 
Dbms 1
Dbms 1Dbms 1
Dbms 1
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 

Último

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Último (20)

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Introduction to Database Systems Lecture 1

  • 1. Introduction to Database Systems Lecture #1 Dated: 19-10-2007
  • 2.  Classes: 01:30 PM – 03:00 PM Thursday 11:30 AM – 01:00 PM Friday  Instructor: Nauman Riaz Chaudhry  Cell: 0300-9503200  Email: nauman.riaz@gmail.com
  • 3. Course Overview  Background and History  Data Models  E/R Model  Relational Model  Object Oriented Model  XML and Database  Database Programming  Relational Algebra  SQL  Object Oriented
  • 4. Textbook  C. J. Date “An Introduction to Database Systems ”, Seventh Edition, Pearson Education  Jeffrey D. Ullman and Jennifer Widom, “A First Course in Database Systems”, Second Edition, Prentice Hall, 2001  Other useful textbooks:  Fundamentals of Database Systems (Elmasri and Navathe)  Database System Concepts (Abraham Siberschatz, Henry F.Korth and S.Sudarshan)  Database Management Systems (Ramakrishnan)
  • 5. Tentative Schedule  Introduction (1-2 classes)  E/R Model (2-3 classes)  Relational Model (3-4 classes)  Other Models (2-3 classes)  Relational Algebra (3-4 classes)  SQL (4-5 classes)  Constraints and triggers (1-2 classes)  System Aspects of SQL (3-4 classes)  XML (3-4 classes)
  • 6. Course Load  3 - 5 homework assignments  1 project  5 Quiz's  A Midterm Exam  A Final Exam Homework and project assignments are due in the beginning of class one or two weeks that follows. Late homework will not be accepted, and a score of zero will be assigned for that assignment.
  • 7. Course Policy  exams: no access to any material nor discussion with anyone (except the instructor) is allowed.  assignments: solutions should be developed independently. Stealing, giving or receiving any code drawings, diagrams, text, or designs from another person is not allowed.  max penalty for academic dishonesty: F in the course; reported to the university.
  • 8. Grading Policy  The grade will be calculated using the following weights: Homework and Quizzes 15% Project 10% Mid-term Exams 25% Final Exam 50%
  • 9.  Starting from now … Something completely different!
  • 10. What is Database?  Essentially, a database is a set of data, or a collection of information. These data are related.  Examples: Student Information human genome sequence company products information
  • 11. More Examples  Airline Reservation Systems  Reservations by a single customer on a single flight, including such information as assigned seat or meal preference  Information about the flight, the airports thy fly from and to, the departure and arrival times, etc.  Ticket prices, requirements, and availability  Banking Systems  Customers, accounts, loans and the balances  Deposit or withdraw money
  • 12. What’s DBMS?  DataBase Management System (DBMS) A powerful tool for creating and manage large amounts of data efficiently and allowing it to persist over long periods of time, safely. It also provides efficient accesses to multiple users. It is used to manage databases.
  • 13. DBMS capabilities  Persistent Storage  Programming Interface  Transaction management
  • 14. DBMS capabilities (Cont.)  Allow users to create databases and specify their schema, using data-definition language.  Allow users to query and modify the data, using data- manipulation language.  Support the storage of very large amount of data over a long period.  Data consistency and failure recovery.
  • 15. File System  Why not using file system?  Can be used to store data information for a long period as well.  Consistency and failure recovery capability  Problems:  no query language, no efficient access for a data item  support of the creation of database is limited  consistency control is not adequate Management of Data is complex
  • 16. DBMS Evolution  File Systems  Hierarchical Model (Tree-based)  Network Model (Graph-based)  Relational Model  Object Oriented Model  Object/Relational Model
  • 17. Relational Database System  Ted Codd 1970  The view of data: relations relations, tuples, attributes tables, rows, columns  Queries could be expressed in high level language, it is simple and efficient  It is widely used in most commercial systems
  • 18. Example 1.1 AccountNo Balance Type 12345 1000.00 Savings 67890 2846.92 checking … … … Bank Account Information (Accounts)
  • 19. Example 1.1 (Cont.)  Check the balance SELECT balance FROM Accounts WHERE accountNo= 67890  Check the accountNo SELECT accountNo From Accounts WHERE type=‘savings’ AND balance < 0
  • 20. Major DBMS Products  Oracle  IBM: DB2, Informix  Microsoft: SQL Server, Access  Sybase  MySQL  Postgres All are "relational" (or "object-relational") database systems at their core.
  • 21. Schema versus data  Schema describes how data is to be structured - defined at set-up time, rarely changes (part of the "metadata")  Data is actual "instance" of database, may change rapidly  Comparable to types and variables in programming languages
  • 22. Data Definition Language (DDL)  Commands for setting up schema of database  Process of designing schema can be complex, may use design methodology and/or tool
  • 23. Data Manipulation Language (DML)  Commands to manipulate data in database: RETRIEVE, INSERT, DELETE, MODIFY  Also called "query language"
  • 24. People  DBMS implementer: builds system  Database designer: establishes schema  Database administrator: loads data, keeps whole thing running  Database user: queries/modifies data
  • 25. DBMS Evolution Trends  Size smaller and smaller using personal computer, similar to applications such as spreadsheet and word processing bigger and bigger terabytes or even petabytes data, using tertiary storage and parallel computing techniques.  Architecture Client-server architecture (Two-Tier) client database Server Multi-Tier architecture: client application server database server
  • 26. DBMS Trends (Cont.)  Versatile Data type integers, characters small storage requirement videos, audios large storage requirement  Integration Data warehouses, data mining
  • 27.
  • 28. Overview of DBMS  DDL commands DBA DDL Complier Execution engine …  Query Processing  Answering the query User Query Compiler Execution engine …  Transaction processing
  • 29. Storage and Buffer Management  Buffer manager  Storage manager  Data: the contents of the database  Metadata (Schema) : structure of the database  Statistics: data properties  Indexes
  • 30. Transaction Processing  Transaction manager  Logging  Concurrency control  Deadlock resolution
  • 31. Query Processor  Query complier  Query parser  Query preprocessor  Query optimizer  Execution engine
  • 32. Outline of Database System  Database design Determine the database structure  Database programming Perform database operations  Database system implementation Build the database
  • 33. Next Class  E/R Concepts