Changes between Version 19 and Version 20 of Normalization
- Timestamp:
- 09/24/25 22:55:44 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Normalization
v19 v20 4 4 {{{ 5 5 R( 6 6 user: username, description, password, registered_at, email, sex,is_active,name, user_id 7 7 feedback: feedback_submission_type, feedback_created_at, feedback_description 8 8 submission: submission_id, submission_status, submission_created_at, submission_description, … … 13 13 project_thread: repo_url, project_title, 14 14 associated_with: asc_started_at, asc_ended_at, 15 channel: channel_name, channel_description, channel_ UUID15 channel: channel_name, channel_description, channel_id 16 16 permissions: perm_name, 17 17 project_roles: pr_name, pr_id, pr_override_type, … … 40 40 9. {{{ {thread_id, user_id } -> asc_started_at, asc_ended_at }}} 41 41 42 10. {{{ channel_ UUID-> channel_name,channel_description}}}43 44 12. {{{ { thread_id, msg_send_at, user_id } -> msg_content }}}42 10. {{{ channel_id -> channel_name,channel_description}}} 43 44 12. {{{ {channel_id, msg_send_at, user_id } -> msg_content }}} 45 45 46 46 13. {{{ pr_id -> pr_name, pr_override_type }}} … … 72 72 73 73 > **LHS**: 74 >> {{{ submission_id,blacklisted_start_date, msg_send_at,pr_id,tag_name,perm_name,blacklisted_about_user, channel_ UUID}}}74 >> {{{ submission_id,blacklisted_start_date, msg_send_at,pr_id,tag_name,perm_name,blacklisted_about_user, channel_id}}} 75 75 76 76 > **RHS**: 77 >> {{{ description, password, registered_at, email, sex,is_active,name, feedback_submission_type, feedback_created_at, feedback_description, submission_status, submission_created_at, submission_description,blacklisted_end_date, reason, tag_name,thread_created_at, thread_content, guidelines,repo_url, asc_started_at, channel_description, perm_name, pr_override_type, msg_content }}}77 >> {{{ description, password, registered_at, email, sex,is_active,name, feedback_submission_type, feedback_created_at, feedback_description, submission_status, submission_created_at, submission_description,blacklisted_end_date, reason, tag_name,thread_created_at, thread_content, guidelines,repo_url, asc_started_at, channel_description, perm_name, pr_override_type, msg_content, channel_name }}} 78 78 79 79 > **LHS & RHS**: 80 >> {{{ user_id,thread_id,username, channel_name,parent_id,project_title,topic_title, pr_name,blacklisted_id}}}80 >> {{{ user_id,thread_id,username,parent_id,project_title,topic_title, pr_name,blacklisted_id}}} 81 81 82 82 == Нормализација … … 125 125 {{{ 126 126 { 127 submission_id 128 user_id, 129 blacklisted_start_date 130 blacklisted_id 131 msg_send_at 132 pr_id 133 tag_name 134 perm_name 135 channel_UUID, 136 thread_id, 137 msg_send_at 127 submission_id, 128 blacklisted_start_date, 129 msg_send_at, 130 pr_id, 131 tag_name, 132 perm_name, 133 blacklisted_about_user, 134 channel_id 138 135 } = { 139 136 submission_id … … 144 141 perm_name 145 142 blacklisted_about_user 146 channel_ UUID,143 channel_id, 147 144 feedback_submission_type, feedback_created_at, feedback_description, 148 145 submission_status, submission_created_at, submission_description , … … 171 168 {{{ R4(thread_id,thread_created_at, thread_content,topic_title, parent_id,repo_url, project_title) }}} 172 169 173 {{{ R5(channel_ UUID,channel_name,channel_description) }}}170 {{{ R5(channel_id,channel_name,channel_description) }}} 174 171 175 172 {{{ R6(pr_id,pr_name, pr_override_type) }}} 176 173 177 {{{ R7( thread_id, msg_send_at, user_id,msg_content) }}}174 {{{ R7(channel_id, msg_send_at, user_id,msg_content) }}} 178 175 179 176 … … 291 288 === Нормализација на R42 до BCNF 292 289 Eдинстевни ФЗ присутни во оваа релација се: 293 1. {{{ thread_id -> topic_title,parent_id }}}290 1. {{{ thread_id channel_id-> topic_title,parent_id }}} 294 291 2. {{{ {topic_title,parent_id} -> thread_id }}} 295 292 3. {{{ parent_id -> topic_title, thread_id }}} … … 310 307 Единствена ФЗ присутна во оваа релациja е: 311 308 312 {{{channel_ UUID-> channel_name,channel_description}}}309 {{{channel_id -> channel_name,channel_description}}} 313 310 314 311 R6 е веќе во BCNF, заради тоа што единствената ФЗ го вклучува суперклучот и нема транзитивни зависности. … … 328 325 Единствена ФЗ присутна во оваа релациja е: 329 326 330 {{{ { thread_id, msg_send_at, user_id} -> msg_content}}}327 {{{ {channel_id, msg_send_at, user_id} -> msg_content}}} 331 328 332 329 **R7** е веќе во BCNF, заради тоа што единствената ФЗ го вклучува суперклучот и нема транзитивни зависности. 333 330 334 Притоа да согледаме дека **R7* е релацијата **messages**.331 Притоа да согледаме дека **R7** е релацијата **messages**. 335 332 336 333 === Нормализација на R8 до BCNF … … 366 363 367 364 365