๐ ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ๋ฑ์ฅํ๊ธฐ ์
์ปดํจํฐ๊ฐ ๋ฑ์ฅํ ์ด๋ ์ปดํจํฐ๊ฐ ํ๋ ์ผ์ ์๋นํ ๋ง์ ๋ถ๋ถ์ ๋ฐ์ดํฐ๋ฅผ ์ฒ๋ฆฌํ๋ ์ผ์ด์๋ค.
๊ทธ๋์ ์ปดํจํฐ๋ฅผ ์ด์ฉํ ๋ฐ์ดํฐ ์ฒ๋ฆฌ๋ ์ปดํจํฐ ๋ฑ์ฅ ์ด๊ธฐ๋ถํฐ ๋ฐ์ ์ ํ๊ณ ๋ง์ ๊ธฐ์ ๋ค์ด ์ปดํจํฐ๋ฅผ ๋์ ํ๊ณ , ์ปดํจํฐ๋ฅผ ์ด์ฉํ ๋ฐ์ดํฐ ์ฒ๋ฆฌ, ์ ์ฅ์ ํ๋ค.
Since the advent of computers, in fact, what computers do was data processing in many of the parts.
So data processing using a computer has been improve a lot since the beginning of the introduction of computers.
Many companies are introducing computers they've been these things data such as processing, storage using computers.
๐ค ๊ณผ๊ฑฐ์๋ ๋ฐ์ดํฐ๋ฅผ ์ด๋ป๊ฒ ๋ค๋ค์๋๊ฐ?
So how did they deal with the data in the past?
it would be good to understand this, How did they save the data in the computer?
์ ์ฅ | ํ์ผ์ ์ ํํ๋ ํํ๋ก ์ ์ฅ ( ํ์ผ ์์คํ
) It was a formalized form of a file. |
์ฒ๋ฆฌ | ๊ฐ๋ณ ํ๋ก๊ทธ๋จ์ ์์ฑํ์ฌ ์ฒ๋ฆฌ |
S-ID ๋ฅผ ๋ณด๋ฉด PIC X[05]๊ฐ ์๋ค. ์ด๊ฒ์ Studen ID ์ปฌ๋ผ์ 5 ์๋ฆฌ๋ผ๋ ๋ป์ด๋ค.
์ด๋ฐ ์์ผ๋ก ์์ฉํ๋ก๊ทธ๋จ์์ ๋ฐ์ดํฐ ํ์ผ์ ๋ํ ๊ตฌ์กฐ ์ ๋ณด๋ฅผ ๊ฐ์ง๊ณ ์๋ค.
๋ฐ์ดํฐ๋ฅผ ์ฌ์ฉํ๋ค๋ณด๋ ๋ฌธ์ ์ ์ด ๋๋ฌ๋ฌ๋ค.
๐ค ํ์ผ์์คํ ์ ๋ฌธ์ ์
1. ๋ฐ์ดํฐ ์ข ์์ฑ ( data dependency )
๋ฐ์ดํฐ๋ฅผ ์ด์ฉํ๋ ์์ฉํ๋ก๊ทธ๋จ์ด ๋ฐ์ดํฐ์ ๊ตฌ์กฐ ( ํ์ผ๊ตฌ์กฐ )์ ๋ณํ์ ์ํฅ์ ๋ฐ๋ ํ์.
the applications that use the data are affected by the structure of the data.
ex ) ํ๋ฒ์ 5์๋ฆฌ -> 7์๋ฆฌ๋ก ๋๋ ค์ผ ํ๋ค๋ฉด?
2. ๋ฐ์ดํฐ ๋ฌด๊ฒฐ์ฑ ( data integrity ) ์ ์นจํด
๋ฐ์ดํฐ๊ฐ ์ค๋ฅ๊ฐ ์๋ ์ ํํ ๊ฐ์ ์ ์ฅํ๊ณ ์์ด์ผ ํจ์ ์๋ฏธ.
It means you need to save accurate and error-free values.
ex ) ํ์์ ๋์ด๋ฅผ ์ ์ฅํ๋ ํญ๋ชฉ์ ์ด๋ฆ์ด ์ ์ฅ๋์๋ค๋ฉด?
3. ๋ฐ์ดํฐ ์ค๋ณต์ฑ ( data redundancy ) ๊ณผ ๋ฐ์ดํฐ ๋ถ์ผ์น ( data inconsistency )
๋ฐ์ดํฐ ์ค๋ณต์ฑ ( data redundancy ) |
๋์ผํ ๋ฐ์ดํฐ๊ฐ ์ฌ๋ฌ ๊ณณ์ ์ ์ฅ,๊ด๋ฆฌ๋จ -> ์ ์ฅ ๊ณต๊ฐ์ ๋ญ๋น, ๋ณด์์ ์ด๋ ค์ ์ผ๊ธฐ the same data is stored and managed in various places. -> wasted of space, difficulties in managing it because of security. |
๋ฐ์ดํฐ ๋ถ์ผ์น ( data inconsistency ) |
์ฌ๋ฌ๊ณณ์ ์ ์ฅ๋ ๋์ผ ๋ฐ์ดํฐ์ ๋ด์ฉ์ด ์๋ก ๋ค๋ฆ. same data stored in multiple locations. |
ex ) ํด์ฌํ ์ฌ๋์ด ์ธ์ฌ๊ณผ์์๋ ํด์ฌ๋ก ๋์ง๋ง ์ฌ๋ฌด๊ณผ์์๋ ์ฌ์ง ์ค์ด๋ผ๊ณ ๋์จ๋ค.
4. ๋ฐ์ดํฐ ๋ณด์์ฑ ( data security ) ์ ๊ฒฐ์ฌ
ex ) ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ ํ์ผ์ด ํ ์คํธ ํ์ผ์ด์ฌ์ ์ธ๋ถ์ ์ฝ๊ฒ ๋ ธ์ถ๋ ์ ์๋ ๊ตฌ์กฐ์๋ค.
๐ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ฑ์ฅ
์ ์ฅ๋ ๋ฐ์ดํฐ๋ฅผ ์ด๋ป๊ฒ ์์ ํ๊ฒ ๋ณดํธํ ๊ฒ์ธ๊ฐ?
๊ทธ ๋์์ผ๋ก ๋ ์ค๋ฅธ ๊ฒ์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์คํ ์ด๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ์์คํฌ์ ๊ณผ๊ฑฐ์ ๋ฐ์ดํฐ ์ฒ๋ฆฌ์ 4๊ฐ์ง ๋ฌธ์ ๋ฅผ ๊ทน๋ณตํ๋ค.
Database have been suggested to overcome the four major problems of data processing using file system in the past.
ํ์ผ ์์คํ ์์๋ ์์ฉ ํ๋ก๊ทธ๋จ์ด ํ์ผ์ ์ง์ ์ ๊ทผ์ ํ ์ ์์๋ค.
ํ์ง๋ง ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์คํ ์์๋ DBMS๊ฐ ์ค๊ฐ ๋ค๋ฆฌ ์ญํ ์ ํ๋ค.
์์ฉํ๋ก๊ทธ๋จ์ ํ์ผ์ ์ง์ ์ ๊ทผ์ ๋ชปํ๊ณ DBMS์๊ฒ ์์ฒญ์ ํ์ฌ Database์์ ํด๋น ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ ์ ๋ฌํ๋ค.
๐ค ์ด ๊ตฌ์กฐ๋ฅผ ํ๊ฒ ๋๋ฉด ์ด๋ค ๋ณํ๊ฐ ์๊ธฐ๋๊ฐ?
1. ํฉ์ด์ง ํ์ผ์ ๋ชจ์ ๋ณด๊ดํ๊ณ ๊ณต์ ํจ -> ๋ฐ์ดํฐ ์ค๋ณต์ฑ์ ๋ฌธ์ ํด๊ฒฐ.
2. ๋ฐ์ดํฐ๋ฒ ์ด์ค์ DBMS๊ฐ ์๊ธฐ ๋๋ฌธ์ -> ๋ณด์์ฑ ๊ฐํ.
3. DBMS๊ฐ ์ฌ์ ์ ์ฒดํฌ๋ฅผ ํ๋ค -> ๋ฐ์ดํฐ ๋ฌด๊ฒฐ์ฑ ๊ฐํ
4. ๊ณผ๊ฑฐ์๋ ์์ฉ ํ๋ก๊ทธ๋จ์ด ํ์ผ์๊ตฌ์กฐ๋ฅผ ์๊ณ ์์ด์ผ ํ์ง๋ง ์ด์ ๋ DBMS๊ฐ ๋ชจ๋ ํ์ผ์ ๊ตฌ์กฐ๋ฅผ ๊ธฐ์ตํ๋ค. -> ๋ฐ์ดํฐ ์ข ์์ฑ ์ํ.
( ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ด๋ถ์ ๋ณํ๊ฐ ์์ฉํ๋ก๊ทธ๋จ์๊ฒ ๊ฐ์ถฐ์ง๋ค. ๊ทธ๋ฆฌํ์ฌ ์์ฉ ํ๋ก๊ทธ๋จ์์ด ๋ฐ์ดํฐ์ ์ข ์๋๋ ํ์์ ์ํ์ํจ๋ค.)
๐ค ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์ ๋๋ฆฌ ์ฌ์ฉ๋๋๊ฐ?
Why are databases so widely used today?
๊ณผ๊ฑฐ ํ์ผ์์คํ ์ ๋ฌธ์ ์ ์ ํด๊ฒฐํ๊ธฐ ๋๋ฌธ์ด๋ค.
๐ค ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค
์ฌ๊ธฐ์ ๋ฐฐ์ธ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ด๋ค.
There's a lot of different kinds, but the database that we're trying to learn is a kind of relational database.
์ ๊ด๊ณํ์ ๋ฐฐ์ฐ๋? Why do we study relational database?
์ค๋๋ ๋ง์ด ์ฌ์ฉํ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๋๋ถ๋ถ ๊ด๊ณํ์ด๋ค.
Most of the databases we use today are this relational database.