0% found this document useful (0 votes)
255 views

Fundamentals of Database Systems: Lesson 1: Introduction

This document provides an overview of a course on fundamentals of database systems. The course covers basic database concepts, ER modeling, the relational database model, normalization, and practical skills in MySQL. It will be assessed through attendance, assignments, projects, and tests. Topics covered include the role of databases in managing data, advantages over file systems, database components, types of databases, and structured vs. unstructured data.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
255 views

Fundamentals of Database Systems: Lesson 1: Introduction

This document provides an overview of a course on fundamentals of database systems. The course covers basic database concepts, ER modeling, the relational database model, normalization, and practical skills in MySQL. It will be assessed through attendance, assignments, projects, and tests. Topics covered include the role of databases in managing data, advantages over file systems, database components, types of databases, and structured vs. unstructured data.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

FUNDAMENTALS OF

DATABASE SYSTEMS
LESSON 1: INTRODUCTION

Nguyễn Thị Hậu


University of Engineering and Technology,
Vietnam National University in Hanoi (UET-VNU)
[email protected]
COURSE OVERVIEW

Nguyen Thi Hau - DBMS 2


Contents
Part 1: Theory (60%: attendance - 10%, assignments -
10%, project - 10%, 3 online tests at week 6, 10, 15 -
3x10%)
1.  Basic concepts
2.  The ER modeling
3.  The relational database model
4.  Functional dependency, Normalization
Bonus: Solving problems in the lectures (Maximum 10%),
and the bonus parts of project (Maximum 10%)
Part 2: Practice (40%: attendance, assignments, tests)
•  MySQL, week 2-15

3 Nguyen Thi Hau - DBMS


see more at https://fintechos.com
Nguyen Thi Hau - DBMS 4
Project requirements
•  Duration: Week 2-15 (students must submit progressive report according to the requirements
of lecturer)

•  Requirements:
1.Choosing an application (possibly using existing applications). Describing all supported
features of the application. (Week 2)

2. Describing the database of the application (entities, relationships, constraints…) in words.


(Week 3)

3. Drawing ERD of the database using Chen ‘s model. (Week 4)

4. Converting the database into the Relation model.

Write 5 queries used in your application (in word, and in Relational Algebra)

5. Normalizing the database into 2NF, 3NF, BCNF (Suggestion: building a set of FD for
each relation obtained in Step 4).

6. Creating & implementing the database using a DBMS.

Write 5 queries used in your application in MySQL (show query + result)


Nguyen Thi Hau - DBMS 5
Readings
•  Ramez Elmasri & Shamkant
B. Navathe, Fundamentals of
The image cannot be displayed. Your computer may not have enough memory to open the
image, or the image may have been corrupted. Restart your computer, and then open the file
again. If the red x still appears, you may have to delete the image and then insert it again.

Database Systems, 7th


Edition, Pearson 2015.

•  C O R O N E L , C . , a n d
MORRIS, S. 2017, Database
Systems: Design,
Implementation, and
Management. 13 th Ed.,
Thomson Course Technology

6 Nguyen Thi Hau - DBMS


10 hottest IT positions 2019
No. Area Salary/year No. of job openings

1 Data Scientist $108 000 6 510


2 DevOps Engineer $106 000 4 657
3 Data Engineer $100 000 4 739
4 Software Engineer $104 000 49 007
5 Security Engineer $102 000 4 683
6 Project Manager $75 000 30 107
7 Product designer $100 000 2 158
8 Java developer $85 000 6 636
9 Solution Architect $127 000 6 969
[Glassdoor.com]
10 Data analyst $60 000 5 456

[Glassdoor.com, 2019]
Nguyen Thi Hau - DBMS 7
Database Career Opportunities

8 Nguyen Thi Hau - DBMS


Top DBMS in 2021

9
Các HQT CSDL dùng bởi
Google, Facebook, Twitter… [stackshare.io]

10
BASIC CONCEPTS

Nguyen Thi Hau - DBMS 11


Data – Information Examples

Nguyen Thi Hau - DBMS


12
Data vs. Information
Data Information
•  Raw facts •  Produced by processing data
–  Raw data - Not yet been •  Reveals the meaning of data
processed to reveal the
meaning •  Enables knowledge creation
•  B u i l d i n g b l o c k s o f •  S h o u l d b e a c c u r a t e ,
information relevant, and timely to
enable good decision
•  Data management
making
–  Generation, storage, and
retrieval of data

13 Nguyen Thi Hau - DBMS


Evolution of File System Data
Processing
Manual File Systems

Accomplished through a system of file folders and filing cabinets

Computerized File Systems


Data processing (DP) specialist: Created a computer-based system
that would track data and produce required reports

File System Redux: Modern End-User Productivity Tools

Includes spreadsheet programs such as Microsoft Excel

14 Nguyen Thi Hau - DBMS


Contents of a simple Customer file

15 Nguyen Thi Hau - DBMS


A Simple File System example

16 Nguyen Thi Hau - DBMS


Problems with File System Data
Processing
Lengthy development times

Difficulty of getting quick answers

Complex system administration

Lack of security and limited data sharing

Extensive programming

17 Nguyen Thi Hau - DBMS


Database
• Shared, integrated computer structure that stores
a collection of:
– End-user data - Raw facts of interest to end user
– Metadata: Data about data, which the end-user data
are integrated and managed
• Describe data characteristics and relationships
• Database management system (DBMS)
– Collection of programs
– Manages the database structure
– Controls access to data stored in the database
18 Nguyen Thi Hau - DBMS
Role of the DBMS
•  Intermediary between the user and the
database
•  Enables data to be shared
•  Presents the end user with an integrated view
of the data
•  Receives and translates application requests
into operations required to fulfill the requests
•  Hides database’s internal complexity from the
application programs and users
19 Nguyen Thi Hau - DBMS
The DBMS Manages the Interaction between the End User and the
Database

20 Nguyen Thi Hau - DBMS


Components of DBMS

Nguyen Thi Hau - DBMS 21


Meta data

22 Nguyen Thi Hau - DBMS


Nguyen Thi Hau - DBMS 23
Advantages of the DBMS
•  Better data integration and less data inconsistency
–  Data inconsistency: Different versions of the same data appear in
different places
•  Increased end-user productivity
•  Improved:
– Data sharing
– Data security
– Data access
– Decision making
•  Data quality: Promoting accuracy, validity, and timeliness
of data

24 Nguyen Thi Hau - DBMS


Types of Databases
•  Single-user database: Supports one user at a
time
–  Desktop database: Runs on PC
•  Multi-user database: Supports multiple users
at the same time
–  Workgroup databases: Supports a small number
of users or a specific department
–  Enterprise database: Supports many users
across many departments

25 Nguyen Thi Hau - DBMS


Types of Databases
•  Centralized database:
Data is located at a single
site
•  Distributed database:
Data is distributed across
different sites
•  Cloud database: Created
and maintained using
cloud data services that
provide defined
performance measures
for the database

26 Nguyen Thi Hau - DBMS


Types of Databases
•  General-purpose databases: Contains a wide
variety of data used in multiple disciplines
•  Discipline-specific databases: Contains data
focused on specific subject areas

27 Nguyen Thi Hau - DBMS


Types of Databases
•  Operational
database: Designed
to support a
company’s day-to-
day operations

•  A n a l y t i c a l
database: Stores
historical data and
business metrics
used exclusively for
tactical or strategic
decision making
–  Data warehouse:
Stores data in a
format optimized
for decision
support

28 Nguyen Thi Hau - DBMS



Types of Databases
•  Business intelligence: Captures and processes
business data to generate information that
support decision making

•  Online analytical processing


(OLAP)
–  Enable retrieving, processing, and
modeling data from the data warehouse

29 Nguyen Thi Hau - DBMS


Types of Databases
•  Unstructured data: It
exists in their original state
•  Structured data: It results
from formatting
–  Structure is applied based
on type of processing to be
performed
•  Semi-structured data:
Processed to some extent
•  E x t e n s i b l e M a r k u p
Language (XML)
–  Represents data elements
in textual format

30 Nguyen Thi Hau - DBMS


Database Design
•  Focuses on the design of the database structure
that will be used to store and manage end-user
data
•  Well-designed database
–  Facilitates data management
–  Generates accurate and valuable information
•  Poorly designed database causes difficult-to-
trace errors

31 Nguyen Thi Hau - DBMS


Database Systems
• Logically related data stored in a single logical
data repository
– Physically distributed among multiple storage
facilities
– DBMS eliminates most of file system’s problems
•  Current generation DBMS software:
o  Stores data structures, relationships between structures, and access paths
o  Defines, stores, and manages all access paths and components

32 Nguyen Thi Hau - DBMS


Contrasting Database and File Systems

33 Nguyen Thi Hau - DBMS


The Database System Environment

34 Nguyen Thi Hau - DBMS

You might also like