Skip to content

Commit eec8c3f

Browse files
author
jsdnhk
committed
posted Dec 2020
1 parent 90ffd41 commit eec8c3f

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

_data/links.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- https://extendsclass.com
5959
- https://regexr.com
6060
- https://regex101.com
61+
- https://codesandbox.io
6162
- https://css2sass.herokuapp.com
6263
- https://app.programmingfonts.org
6364

_data/pages_latest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
- name: blog
3-
mtime: 1-11-2020
3+
mtime: 1-12-2020
44
- name: debug
55
mtime: 12-10-2020
66
- name: fonts
77
mtime: 12-10-2020
88
- name: links
9-
mtime: 12-10-2020
9+
mtime: 1-12-2020
1010
- name: quotes
1111
mtime: 12-10-2020
1212
- name: resume
20.7 KB
Loading
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "Make DB tables great by normalization"
3+
tags: [development, database]
4+
category: "database"
5+
comment: true
6+
7+
---
8+
9+
## Introduction
10+
11+
Nowadays, almost all scalable softwares are connected to database for data persistence need.
12+
13+
Relational database is the most common and widely-used one, without that no any data can be stored and reused.
14+
15+
The relationship and organization inside the database are always an important section to make data collected well.
16+
17+
Thus, DB normalization was then proposed and become the guildline of making relational DB tables.
18+
19+
It mainly eliminates irrelevant fields and duplication of data, to give normal data manipulation and data integrity.
20+
21+
22+
## Rules
23+
24+
There are the progressive rules for database normalization, if obey then they call "1st/2nd/3rd normal form".
25+
26+
![db-normalization-graph](/assets/posts/2020-12-01/db-normalization-graph.jpg)
27+
28+
### Level 1: 1st normal form
29+
- Eliminate repeating groups in individual tables
30+
- Create a separate table for each set of related data
31+
- Identify each set of related data with a primary key
32+
33+
### Level 2: 2nd normal form
34+
- Create separate tables for sets of values that apply to multiple records
35+
- Relate these tables with a foreign key
36+
37+
### Level 3: 3rd normal form
38+
- Eliminate fields that do not relate to the key item to become atomic
39+
40+
*For more detailed instruction, this [poster][db-normalization-poster] provides the full solution.*
41+
42+
[db-normalization-poster]: http://marcrettig.me/wp-content/uploads/2017/04/rettigNormalizationPoster.pdf

0 commit comments

Comments
 (0)