๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐“ก๐“ธ๐“ธ๐“ถ5: ๐’ฆ๐‘œ๐“‡๐‘’๐’ถ ๐’ฐ๐“ƒ๐’พ๐“‹/Database(COSE371)

[๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค] CH2. Introduction to Relation Model(1)

superkey : tuple์„ ํŠน์ •์ง€์„ ์ˆ˜ ์žˆ๋Š” attribute ๋˜๋Š” attribute์˜ ์ง‘ํ•ฉ ๋ชจ๋‘

 

candidate key: primary key๊ฐ€ ๋  ์ˆ˜ ์žˆ๋Š” ํ›„๋ณดํ‚ค๋กœ, tuple์„ ํŠน์ •์ง€์„ ์ˆ˜ ์žˆ๋Š” super ํ‚ค ์ค‘ ์ตœ์†Œ์ธ ๊ฒƒ(๋ถˆํ•„์š”ํ•œ ๊ฒƒ ๋บ€ ๊ฒƒ)

primary key : candidate key ์ค‘ ํ•˜๋‚˜

 

foreign key : ๋‹ค๋ฅธ relation์˜ pk๋ฅผ ์ฐธ์กฐํ•œ key