Database Concepts and Design Overview
Database Concepts and Design Overview
Outlines
1 2
1 2
3 4
3 4
5 6
1
9/28/2023
7 8
7 8
9 10
9 10
11 12
2
9/28/2023
13 14
15 16
15 16
17 18
17 18
3
9/28/2023
19 20
19 20
4) After the release of the lock is confirmed, Program 2 references Data A (60).
• Exclusive lock
→ Apply exclusive lock to Data A.
• This lock is mainly used when data is updated.
5) Data A is updated with the content (40) that is modified in Program 2.
• Neither reading nor writing is permitted for →Release the lock of Data A. (Data A is unlocked.)
the users other than the user who applied the
lock.
21 22
21 22
23 24
23 24
4
9/28/2023
25 26
25 26
1. Atomicity: The process completes by commit or rollback. • SQL is a database language for relational databases.
Create
2. Consistency: Contradiction (i.e., inconsistency of data) does not Data Definition Language Alter table
occur before and after the process. Drop
(DDL) - Defines and organizes
Grant
databases Revoke
3. Isolation: Multiple transactions do not mutually interfere.
4. Durability: Results after commit are continuously retained even Database Language
after the process. Select
Data Manipulation Language(DML)
Insert
-search, update, add, and delete
Update
data Delete
27 28
27 28
29 30
29 30
5
9/28/2023
31 32
33 34
33 34
• Eg05: Store tuple (K11, English I) in the “Subject” table. SELECT item 1, item 2, …
INSERT INTO Subject VALUES ('K11', 'English I') FROM table 1, table 2, …
WHERE condition
2) Using data storage program
• A data storage program is prepared in the host language system beforehand, or the data storage program that is
available in the utility program is used.
35 36
35 36
6
9/28/2023
37 38
39 40
41 42
41 42
7
9/28/2023
43 44
43 44
45 46
45 46
47 48
47 48
8
9/28/2023
49 50
49 50
51 52
51 52
SELECT table1.column1,table1.column2,table2.column1,....
FROM table1 INNER JOIN table2
ON table1.matching_column = table2.matching_column;
SELECT Student.name.score.subjectNumber,
FROM Student INNER JOIN score
ON Student.studentNumber = score.studentNumber;
53 Ref: https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/ 54
53 54
9
9/28/2023
Ref: https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/
55 Ref: https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/
56
55 56
Ref: https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/
57 Ref: https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/
58
57 58
59 60
59 60
10
9/28/2023
61 62
61 62
• DELETE statement: This statement is used when a tuple is deleted from the table.
63 64
63 64
65 66
11
9/28/2023
67 68
D a t a Wa r e h o u s e Data Mining
• Data mining is the method to analyze data or regularity required for the management by using mathematical and
• a company-wide integrated information system (multi-dimensional statistical techniques such as OLAP.
database) that expands the functions of databases and extracts the
required decision-making information for the business strategy of the • Star schema
• It is a schema of a database for analysis. It places analysis values in a radial manner focusing on the target of
company. analysis. Creating index for implementing star schema is one of the preparations required for data mining.
ETL (Extract/Transform/Load) • Cluster analysis
It refers to extracting the raw data stored in the mission critical system, processing the raw data into an easy- • It is an analytical technique that the similarity of data to be analyzed is quantitatively (e.g., by using distance
to-use format with tasks such as name identification and standardization, and exporting it to a data warehouse. or extent of similarity) determined in order to group data.
It is also software that supports this series of processes. • Dendrogram is used for showing the results of analysis.
Data Cleansing (Data cleaning)
It refers to removing duplication and inconsistency of notations from the database. It is used in database • This series of data management/analysis work from building a data warehouse to data mining is also called data
optimization and ETL processing. administration.
69 70
69 70
71 72
71 72
12
9/28/2023
73 74
73 74
• IRDS is the system that registers and manages metadata, such as Commercial database • It is a database that can handle information (e.g., images, audio) in addition
attribute, meaning, and storage location of data, in DD/D (Data • It is a database that contains independently collected to characters and numeric values. It is very hard for users to use the
information and that is offered to third parties on a database by being aware of various pieces of information such as images
Dictionary). chargeable basis for generating profits. and audio, and therefore, the concept of OODB (Object-Oriented
DataBase) is used in most of the cases.
• It is also used as a repository that manages source code or such
other data, in an integrated manner in software development and OODB (Object-Oriented Database) • Hypertext database
maintenance. • It is a database that is managed with objects where data • It is a network structured database that manages hypertext (e.g., a
and processing (i.e., procedures) are integrated (i.e., document that can freely search/display the relevant information by using
encapsulated). Users can process the data by simply keywords) used in the Internet.
giving specific instructions (i.e., messages).
• XML database
• It is a database that can manage the document structure (e.g., tags) of XML
as it is. This database uses the features of XML and has excellent flexibility
and expandability.
75 76
75 76
Data mapping
77 78
77 78
13