計算機科学のブログ

ほしい物リスト

SQL - SQLite - 複数テーブルのデータベース設計 - 現行テーブルからの脱却 - 第3正規形、3NF

Head First SQL ―頭とからだで覚えるSQLの基本Lynn Beighley(著)、 佐藤 直生(監訳)、 松永 多苗子(翻訳)、 オライリージャパンの 7章(複数テーブルのデータベース設計 - 現行テーブルからの脱却)、p.337(エクササイズ)の解答を求めてみる。

my_contacts
my_contacts
PK
PK
contact_id
contact_id
last_name
last_name
first_name
first_name
phone
phone
email
email
gender
gender
birthday
birthday
prof_id
prof_id
zip_code
zip_code
status_id
status_id
contact_interest
contact_interest
PK
PK
contact_id
contact_id
interest_id
interest_id
contact_seeking
contact_seeking
PK
PK
contact_id
contact_id
seeking_id
seeking_id
profession
profession
PK
PK
prof_id
prof_id
profession
profession
zip_code
zip_code
PK
PK
zip_code
zip_code
city
city
state
state
interest
interest
PK
PK
interest_id
interest_id
interest
interest
seeking
seeking
PK
PK
seeking_id
seeking_id
seeking
seeking
status
status
PK
PK
status_id
status_id
status
status
Text is not SVG - cannot display