๐ข๋ณธ ์์ ์ ์ ์๊ถ์ http://www.kocw.net/home/cview.do?cid=9c591659f017851e ์ ์์ผ๋ฏ๋ก, ๋ฌด๋จ ๋ณต์ ๋ฐ ๋ฐฐํฌ๋ฅผ ๊ธํฉ๋๋ค.


๋จผ์ ์๊ตฌ์ฌํญ์ ๋ถ์ํด์ ์๋์ ๊ฐ์ ์ ์ฐจ๋ฅผ ๋ฐ๋ผ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ค๊ณ๋ฅผ ํ๋ค.

๐ก๊ฐ๋จํ๊ฒ ๊ฐ์ฒด ๋ฐ ์์ฑ์ ํ์
ํ๊ธฐ ์ํด, ๊ฐ๋ตํ๋ ๋ฆด๋ ์ด์
์ ๋จผ์ ์์ฑํ๋ค.
1. Department (name(unique), number(PK), a set of locations, manager, a set of employees, a set of projects)
2. Project (name(unique), number(PK), a single location, a set of employees, a single department)
3. Employee (name, SSN(PK), address, salary, sex, birthdate, a direct supervisor, a set of dependents(๋ป: ๋ถ์๊ฐ์กฑ), a single department, a set of projects)
4. Dependent (fist name(PK), sex, birthdate)

a single of์ด๋ฉด ๋ฐ๋์ชฝ์ ๋ฐ๋์ a set of์ ๊ด๊ณ๋ฅผ ๊ฐ์ง๋ค.(์ ๋ชป๋ฏฟ๊ฒ ์ผ๋ฉด ์๊ตฌ์ฌํญ์ ๋ณด๊ณ ์ง์ ERD๋ฅผ ๊ทธ๋ ค๋ณผ ๊ฒ)a set of locations๋ฅผ ๋์ณ์ ๋ค์ค๊ฐ ์ค์ ์ ์ํ์.
์) ๋ง์ผํ
ํ์ด 1์ธต ๋๋ 2์ธต ๊ฑด๋ฌผ์ ์์ ์ ์์
manager๋ฅผ Employee์ ์์ฑ์ผ๋ก ๋์๋๋ฐ, ์ด๊ฒ์ Employee(1) - manage (manager) - Department(1)์ ๊ด๊ณ๋ฅผ ๊ฐ์ง๋ ๊ฒ์ผ๋ก ๋ณ๊ฒฝํด์ค์ผ ํจ
Employee์a direct supervisor๋ Employee(N) - supervise - Employee(1)์ ๊ด๊ณ๋ฅผ ๊ฐ์ง
Employee(M) - assign (hours) - Project(N)์ ๊ด๊ณ๋ฅผ ๊ฐ๋ ์ด์ ๋
has a set of employees who work on itworks some number of hours per week **on each of a set of projects**Employee(1) - depend - Dependent(N)์ ๊ด๊ณ์ is related to a particular employee in a particular way (e.g., child, spouse, pet)์ ์ํด Dependent ์์ฑ์ relationship์ ์ถ๊ฐํด์ค์ผํจ.
and who assumed that position on some date๋ Manages ๊ด๊ณ์ Start_date ์์ฑ์ผ๋ก ๋ค์ด๊ฐ
๐ฉโ๐ซ์ค์ ๋ต์ ์๋์ ๊ฐ์ต๋๋ค.
