SlideShare uma empresa Scribd logo
1 de 25
Lecture 1
Introduction to Database
Ir. Munawar, MMSI., M.Com., PhD
Prodi Sistem Informasi dan Teknik Informatika
Fakultas Ilmu Komputer
TOPICS BEFORE MID TEST
1. Introduction to Database
2. Relational & Relational Algebra
3. Relational Model
4. Entity Relationship Diagram (ERD)
5. Normalization to 3NF
6. BCNF Normalization to 5NF
7. SQL Data Definition
MID TEST
TOPICS AFTER MID TEST
8. More SQL Data Definition
9. SQL Select
10. More SQL Select
11. Yet More SQL Select
12. Missing Information
13. Trigger
14. Review & Case Study
FINAL TEST
ASSESSMENT
• 50 % Group (2 students) Assignment
Designing database for real business
• 20 % Mid Test
• 30 % Final Test
REFERENCES
• ‘Database Systems: A practical approach to
design, implementation and management’ by
Connolly and Begg
• `A first course in database systems’ by Ullman
and Widom
• Other text book : ‘Database Systems’ by CJ
Date
Learning Outcomes
• Student will be able to understand the
conceptual design of database
• Student will be able to describe the important
of good database design
• Student will be able to apply database design
for a real business
Why Study Databases?
• Databases are useful
– Many computing
applications deal with large
amounts of information
– Database systems give a set
of tools for storing,
searching and managing
this information
• Databases in CS
– Databases are a ‘core topic’
in computer science
– Basic concepts and skills
with database systems are
part of the skill set you will
be assumed to have as a CS
graduate
What is a Database?
• “A set of information held in a computer”
Oxford English Dictionary
• “One or more large structured sets of
persistent data, usually associated with
software to update and query the data”
Free On-Line Dictionary of Computing
• “A collection of data arranged for ease and
speed of search and retrieval”
Dictionary.com
Databases
• Web indexes
• Library catalogues
• Medical records
• Bank accounts
• Stock control
• Personnel systems
• Product catalogues
• Telephone directories
• Train timetables
• Airline bookings
• Credit card details
• Student records
• Customer histories
• Stock market prices
• Discussion boards
• and so on…
Database Systems
• A database system consists
of
– Data (the database)
– Software
– Hardware
– Users
• We focus mainly on the
software
• Database systems allow
users to
– Store
– Update
– Retrieve
– Organise
– Protect
their data.
Database Users
• End users
– Use the database system to
achieve some goal
• Application developers
– Write software to allow end
users to interface with the
database system
• Database Administrator
(DBA)
– Designs & manages the
database system
• Database systems
programmer
– Writes the database
software itself
Database Management Systems
• A database is a collection
of information
• A database management
system (DBMS) is the
software than controls
that information
• Examples:
– Oracle
– DB2 (IBM)
– MS SQL Server
– MS Access
– Ingres
– PostgreSQL
– MySQL
What the DBMS does
• Provides users with
– Data definition language
(DDL)
– Data manipulation language
(DML)
– Data control language (DCL)
• Often these are all the
same language
• DBMS provides
– Persistence
– Concurrency
– Integrity
– Security
– Data independence
• Data Dictionary
– Describes the database
itself
Data Dictionary - Metadata
• The dictionary or catalog
stores information about
the database itself
• This is data about data or
‘metadata’
• Almost every aspect of the
DBMS uses the dictionary
• The dictionary holds
– Descriptions of database
objects (tables, users, rules,
views, indexes,…)
– Information about who is
using which data (locks)
– Schemas and mappings
File Based Systems
• File based systems
– Data is stored in files
– Each file has a specific
format
– Programs that use these
files depend on knowledge
about that format
• Problems:
– No standards
– Data duplication
– Data dependence
– No way to generate ad hoc
queries
– No provision for security,
recovery, concurrency, etc.
Relational Systems
• Problems with early
databases
– Navigating the records
requires complex programs
– There is minimal data
independence
– No theoretical foundations
• Then, in 1970, E. F.
Codd wrote “A Relational
Model of Data for Large
Shared Databanks” and
introduced the relational
model
Relational Systems
• Information is stored as
tuples or records in
relations or tables
• There is a sound
mathematical theory of
relations
• Most modern DBMS are
based on the relational
model
• The relational model
covers 3 areas:
– Data structure
– Data integrity
– Data manipulation
• More details in the next
lecture…
ANSI/SPARC Architecture
• ANSI - American National
Standards Institute
• SPARC - Standards
Planning and
Requirements Committee
• 1975 - proposed a
framework for DBs
• A three-level architecture
– Internal level: For systems
designers
– Conceptual level: For
database designers and
administrators
– External level: For database
users
Internal Level
• Deals with physical storage
of data
– Structure of records on disk
- files, pages, blocks
– Indexes and ordering of
records
– Used by database system
programmers
• Internal Schema
RECORD EMP
LENGTH=44
HEADER: BYTE(5)
OFFSET=0
NAME: BYTE(25)
OFFSET=5
SALARY: FULLWORD
OFFSET=30
DEPT: BYTE(10)
OFFSET=34
Conceptual Level
• Deals with the
organisation of the data as
a whole
– Abstractions are used to
remove unnecessary details
of the internal level
– Used by DBAs and
application programmers
• Conceptual Schema
CREATE TABLE
Employee (
Name
VARCHAR(25),
Salary REAL,
Dept_Name
VARCHAR(10))
External Level
• Provides a view of the
database tailored to a user
– Parts of the data may be
hidden
– Data is presented in a useful
form
– Used by end users and
application programmers
• External Schemas
Payroll:
String Name
double Salary
Personnel:
char *Name
char *Department
Mappings
• Mappings translate
information from one level
to the next
– External/Conceptual
– Conceptual/Internal
• These mappings provide
data independence
• Physical data
independence
– Changes to internal level
shouldn’t affect conceptual
level
• Logical data independence
– Conceptual level changes
shouldn’t affect external
levels
ANSI/SPARC Architecture
Stored
Data
Conceptual
View
External
View 1
External
View 2
User 1 User 2 User 3
DBA
External Schemas
External/Conceptual Mappings
Conceptual Schema
Internal Schema
Conceptual/Internal Mapping
This Lecture in Exams
• Describe the three levels of the ANSI/SPARC model. You should
include information about what each level is for, which users might be
interested in which levels, and how the levels relate to one another.
Next Lecture
The Relational Model
– Relational data structure
– Relational data integrity
– Relational data manipulation
For more information
– Connolly and Begg chapters 3 and 4
– Ullman and Widom (2 ed.) Chapter 3.1, 5.1
– E.F. Codd’s paper

Mais conteúdo relacionado

Semelhante a PPT-UEU-Basis-Data-Pertemuan-1.pptx

Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMmoronfolabukunmi
 
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfLecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfSharmainnePale
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.pptChSheraz3
 
DBMS introduction and functionality of of dbms
DBMS introduction and functionality of  of dbmsDBMS introduction and functionality of  of dbms
DBMS introduction and functionality of of dbmsranjana dalwani
 
UNIT machine learning unit 1,algorithm pdf
UNIT machine learning  unit 1,algorithm pdfUNIT machine learning  unit 1,algorithm pdf
UNIT machine learning unit 1,algorithm pdfOmarFarooque9
 
Module 1 - Chapter1.pptx
Module 1 - Chapter1.pptxModule 1 - Chapter1.pptx
Module 1 - Chapter1.pptxSoniaDevi15
 
DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structureRUpaliLohar
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxRiannel Tecson
 
History of database processing module 1 (2)
History of database processing module 1 (2)History of database processing module 1 (2)
History of database processing module 1 (2)chottu89
 
[Lec#4]databases and database management systems.pptx
[Lec#4]databases and database management systems.pptx[Lec#4]databases and database management systems.pptx
[Lec#4]databases and database management systems.pptxNoorNoora5
 
Week 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxWeek 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxNurulIzrin
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementAxmedMaxamuudYoonis
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1Jyothis Menon
 

Semelhante a PPT-UEU-Basis-Data-Pertemuan-1.pptx (20)

(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
Database presentaion
Database presentaionDatabase presentaion
Database presentaion
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
 
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfLecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
 
DBMS
DBMS DBMS
DBMS
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
DBMS introduction and functionality of of dbms
DBMS introduction and functionality of  of dbmsDBMS introduction and functionality of  of dbms
DBMS introduction and functionality of of dbms
 
oracle
oracle oracle
oracle
 
UNIT machine learning unit 1,algorithm pdf
UNIT machine learning  unit 1,algorithm pdfUNIT machine learning  unit 1,algorithm pdf
UNIT machine learning unit 1,algorithm pdf
 
Module 1 - Chapter1.pptx
Module 1 - Chapter1.pptxModule 1 - Chapter1.pptx
Module 1 - Chapter1.pptx
 
DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structure
 
Development Lifecycle
Development LifecycleDevelopment Lifecycle
Development Lifecycle
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
Dbms
DbmsDbms
Dbms
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
History of database processing module 1 (2)
History of database processing module 1 (2)History of database processing module 1 (2)
History of database processing module 1 (2)
 
[Lec#4]databases and database management systems.pptx
[Lec#4]databases and database management systems.pptx[Lec#4]databases and database management systems.pptx
[Lec#4]databases and database management systems.pptx
 
Week 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxWeek 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptx
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project Management
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
 

Mais de UbaidURRahman78

Mais de UbaidURRahman78 (7)

DIP lab 8.pptx
DIP lab 8.pptxDIP lab 8.pptx
DIP lab 8.pptx
 
dbms (1).ppt
dbms (1).pptdbms (1).ppt
dbms (1).ppt
 
L2-3.FA19.ppt
L2-3.FA19.pptL2-3.FA19.ppt
L2-3.FA19.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
Lecture5_ServerVirtualization.pptx
Lecture5_ServerVirtualization.pptxLecture5_ServerVirtualization.pptx
Lecture5_ServerVirtualization.pptx
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Demo lec.pptx
Demo lec.pptxDemo lec.pptx
Demo lec.pptx
 

Último

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburgmasabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 

Último (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 

PPT-UEU-Basis-Data-Pertemuan-1.pptx

  • 1. Lecture 1 Introduction to Database Ir. Munawar, MMSI., M.Com., PhD Prodi Sistem Informasi dan Teknik Informatika Fakultas Ilmu Komputer
  • 2. TOPICS BEFORE MID TEST 1. Introduction to Database 2. Relational & Relational Algebra 3. Relational Model 4. Entity Relationship Diagram (ERD) 5. Normalization to 3NF 6. BCNF Normalization to 5NF 7. SQL Data Definition MID TEST
  • 3. TOPICS AFTER MID TEST 8. More SQL Data Definition 9. SQL Select 10. More SQL Select 11. Yet More SQL Select 12. Missing Information 13. Trigger 14. Review & Case Study FINAL TEST
  • 4. ASSESSMENT • 50 % Group (2 students) Assignment Designing database for real business • 20 % Mid Test • 30 % Final Test
  • 5. REFERENCES • ‘Database Systems: A practical approach to design, implementation and management’ by Connolly and Begg • `A first course in database systems’ by Ullman and Widom • Other text book : ‘Database Systems’ by CJ Date
  • 6. Learning Outcomes • Student will be able to understand the conceptual design of database • Student will be able to describe the important of good database design • Student will be able to apply database design for a real business
  • 7. Why Study Databases? • Databases are useful – Many computing applications deal with large amounts of information – Database systems give a set of tools for storing, searching and managing this information • Databases in CS – Databases are a ‘core topic’ in computer science – Basic concepts and skills with database systems are part of the skill set you will be assumed to have as a CS graduate
  • 8. What is a Database? • “A set of information held in a computer” Oxford English Dictionary • “One or more large structured sets of persistent data, usually associated with software to update and query the data” Free On-Line Dictionary of Computing • “A collection of data arranged for ease and speed of search and retrieval” Dictionary.com
  • 9. Databases • Web indexes • Library catalogues • Medical records • Bank accounts • Stock control • Personnel systems • Product catalogues • Telephone directories • Train timetables • Airline bookings • Credit card details • Student records • Customer histories • Stock market prices • Discussion boards • and so on…
  • 10. Database Systems • A database system consists of – Data (the database) – Software – Hardware – Users • We focus mainly on the software • Database systems allow users to – Store – Update – Retrieve – Organise – Protect their data.
  • 11. Database Users • End users – Use the database system to achieve some goal • Application developers – Write software to allow end users to interface with the database system • Database Administrator (DBA) – Designs & manages the database system • Database systems programmer – Writes the database software itself
  • 12. Database Management Systems • A database is a collection of information • A database management system (DBMS) is the software than controls that information • Examples: – Oracle – DB2 (IBM) – MS SQL Server – MS Access – Ingres – PostgreSQL – MySQL
  • 13. What the DBMS does • Provides users with – Data definition language (DDL) – Data manipulation language (DML) – Data control language (DCL) • Often these are all the same language • DBMS provides – Persistence – Concurrency – Integrity – Security – Data independence • Data Dictionary – Describes the database itself
  • 14. Data Dictionary - Metadata • The dictionary or catalog stores information about the database itself • This is data about data or ‘metadata’ • Almost every aspect of the DBMS uses the dictionary • The dictionary holds – Descriptions of database objects (tables, users, rules, views, indexes,…) – Information about who is using which data (locks) – Schemas and mappings
  • 15. File Based Systems • File based systems – Data is stored in files – Each file has a specific format – Programs that use these files depend on knowledge about that format • Problems: – No standards – Data duplication – Data dependence – No way to generate ad hoc queries – No provision for security, recovery, concurrency, etc.
  • 16. Relational Systems • Problems with early databases – Navigating the records requires complex programs – There is minimal data independence – No theoretical foundations • Then, in 1970, E. F. Codd wrote “A Relational Model of Data for Large Shared Databanks” and introduced the relational model
  • 17. Relational Systems • Information is stored as tuples or records in relations or tables • There is a sound mathematical theory of relations • Most modern DBMS are based on the relational model • The relational model covers 3 areas: – Data structure – Data integrity – Data manipulation • More details in the next lecture…
  • 18. ANSI/SPARC Architecture • ANSI - American National Standards Institute • SPARC - Standards Planning and Requirements Committee • 1975 - proposed a framework for DBs • A three-level architecture – Internal level: For systems designers – Conceptual level: For database designers and administrators – External level: For database users
  • 19. Internal Level • Deals with physical storage of data – Structure of records on disk - files, pages, blocks – Indexes and ordering of records – Used by database system programmers • Internal Schema RECORD EMP LENGTH=44 HEADER: BYTE(5) OFFSET=0 NAME: BYTE(25) OFFSET=5 SALARY: FULLWORD OFFSET=30 DEPT: BYTE(10) OFFSET=34
  • 20. Conceptual Level • Deals with the organisation of the data as a whole – Abstractions are used to remove unnecessary details of the internal level – Used by DBAs and application programmers • Conceptual Schema CREATE TABLE Employee ( Name VARCHAR(25), Salary REAL, Dept_Name VARCHAR(10))
  • 21. External Level • Provides a view of the database tailored to a user – Parts of the data may be hidden – Data is presented in a useful form – Used by end users and application programmers • External Schemas Payroll: String Name double Salary Personnel: char *Name char *Department
  • 22. Mappings • Mappings translate information from one level to the next – External/Conceptual – Conceptual/Internal • These mappings provide data independence • Physical data independence – Changes to internal level shouldn’t affect conceptual level • Logical data independence – Conceptual level changes shouldn’t affect external levels
  • 23. ANSI/SPARC Architecture Stored Data Conceptual View External View 1 External View 2 User 1 User 2 User 3 DBA External Schemas External/Conceptual Mappings Conceptual Schema Internal Schema Conceptual/Internal Mapping
  • 24. This Lecture in Exams • Describe the three levels of the ANSI/SPARC model. You should include information about what each level is for, which users might be interested in which levels, and how the levels relate to one another.
  • 25. Next Lecture The Relational Model – Relational data structure – Relational data integrity – Relational data manipulation For more information – Connolly and Begg chapters 3 and 4 – Ullman and Widom (2 ed.) Chapter 3.1, 5.1 – E.F. Codd’s paper