database - Normalization a table -


i want normalize table 3nf

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

how can work?

assuming user_name pk.

 ------------------------------------------------------------ |post_id|post_title|post_text|post_submitted_time|user_name| ------------------------------------------------------------      1      foo       bar          08:15             baz    ------------------------------------------------------------------ |comment_id|comment_text|submitted_comment_time|user_name|post_id| ------------------------------------------------------------------      1         blabla          13:37             anyname     1      2         foobar          13:38             anyname     1   

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -