0

このテーブルを 3NF に正規化したい

              -----------------------------------
              |        |         |              |
              |        V         V              V
----------------------------------------------------------------------------------------------------------
|user_name|post_id|post_title|post_text|post_submitted_time|comment_id|comment_text|submited_comment_time|
----------------------------------------------------------------------------------------------------------
     |        |                                                  ^            ^                ^
     |        |                                                  |            |                |
     -------------------------------------------------------------------------------------------

どうすればこの仕事をすることができますか?

4

2 に答える 2

1

user_name が PK であると仮定します。

-------------------------------------------------- ----------
|post_id|post_title|post_text|post_submitted_time|user_name|
-------------------------------------------------- ----------
     1 フーバー 08:15 baz  

-------------------------------------------------- ----------------
|comment_id|comment_text|submitted_comment_time|user_name|post_id|
-------------------------------------------------- ----------------
     1 blabla 13:37 任意の名前 1
     2 foobar 13:38 任意の名前 1  
于 2013-05-18T18:53:31.227 に答える