Changes between Version 111 and Version 112 of Version1


Ignore:
Timestamp:
08/30/24 14:26:15 (4 weeks ago)
Author:
184006
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Version1

    v111 v112  
    267267pet_galery_id, orders_id, products_id, breeds_id, vet_centers_id)
    268268\\ **R,,1,, n R,,2,,** = jobs_id, клуч за R,,1,, што значи нема губење на податоци.
    269 \\ -----------------
    270 \\ Разгледуваме **R,,1,,**
    271 \\ e во 2NF
    272 \\ e во 3NF
    273 \\ e во BCNF
    274 
    275 \\-------------------
     269\\ -----------------------------------------------------------------------------------------------------------------------------
     270
     271
    276272\\ **R,,2,,** не е во 2NF поради pet_cares_id ->title, description, start_date, dateEnding
    277273\\ pet_cares_id +={ pet_cares_id , title, description, start_date, dateEnding}
    278 \\ **R,,21,,** (pet_cares_id , title, description, start_date, dateEnding) клуч pet_cares_id, BCNF
     274\\ **R,,21,,** ('''pet_cares_id''' , title, description, start_date, dateEnding) клуч pet_cares_id, BCNF
    279275\\ **F,,21,,** { pet_cares_id ->title, description, start_date, dateEnding}
    280 \\ **R,,22,,** (pet_cares_id, vet_centers_id, name, address, vet_centers_description, workingHours,
     276\\ **R,,22,,** ('''pet_cares_id''', '''vet_centers_id''', name, address, vet_centers_description, workingHours,
    281277latitude, longitude,roles_id, type, users_id, first_name, last_name,
    282278phoneNumber, email, password, blog_post_for_consultation_id, blog_post_title,
    283 blog_post_description, dateAsked, blog_post_answers_id, parent_id, reply, date_answers,
    284 cities_id, cities_name, reports_id, reports_description, pets_id, pet_status_id, node,
    285 pet_status_type, therapy_id, appoitmentDate, therapy_description, diagnostics_id,
    286 diagnostics_description, medecines_id, medecines_description,
    287 manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
    288 color, dateOfBirthday, pets_description, type_of_pets_id, pet_galery_id, image, orders_id,
    289 products_id, products_name, products_description, category, dateAdded,isActive, price,
    290 available_quantity, quantity, breeds_id, breeds_name, kind_of_pet, type_of_pets_description
     279blog_post_description, dateAsked, '''blog_post_answers_id''', parent_id, reply, date_answers,
     280'''cities_id''', cities_name, '''reports_id''', reports_description, pets_id, pet_status_id, node,
     281pet_status_type, '''therapy_id''', appoitmentDate, therapy_description, '''diagnostics_id''',
     282diagnostics_description, '''medecines_id''', medecines_description,
     283manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
     284color, dateOfBirthday, pets_description, type_of_pets_id, '''pet_galery_id''', image, '''orders_id''',
     285'''products_id''', products_name, products_description, category, dateAdded,isActive, price,
     286available_quantity, quantity, '''breeds_id''', breeds_name, kind_of_pet, type_of_pets_description
    291287)
    292288\\ **F,,22,,** = ( vet_centers_id-> name, address, vet_centers_description, workingHours, latitude, longitude
     
    311307)
    312308\\ **R,,22,, n R,,21,,** = pet_cares_id, клуч за R,,21,, => нема губење на податоци.
     309\\ -----------------------------------------------------------------------------------------------------------------------------
    313310
    314311\\ **R,,22,,** не е во 2NF поради vet_centers_id-> name, address, vet_centers_description, workingHours, latitude, longitude
     
    319316phoneNumber, email, password, blog_post_for_consultation_id, blog_post_title,
    320317blog_post_description, dateAsked, '''blog_post_answers_id''', parent_id, reply, date_answers,
    321 cities_id, cities_name, '''reports_id''', reports_description, pets_id, pet_status_id, node,
     318'''cities_id''', cities_name, '''reports_id''', reports_description, pets_id, pet_status_id, node,
    322319pet_status_type, therapy_id, appoitmentDate, therapy_description, '''diagnostics_id''',
    323320diagnostics_description, '''medecines_id''', manufacturers_name, medecines_description,
     
    346343\\ medecines_id → manufacturers_id)
    347344\\ **R,,222,, n R,,221,,** = vet_centers_id, клуч за R221 => нема губење на податоци.
     345\\ -----------------------------------------------------------------------------------------------------------------------------
    348346
    349347\\ R,,222,, не е во 3NF поради roles_id->type
    350348\\ roles_id +={roles_id, type}
    351 \\ **R,,2221,,** (roles_id, type) клуч roles_id BCNF
     349\\ **R,,2221,,** ('''roles_id''', type) клуч roles_id BCNF
    352350\\ **F,,2221,,** { roles_id-> type}
    353 \\ **R,,2222,,** (roles_id, users_id, first_name, last_name,
    354 phoneNumber, email, password, blog_post_for_consultation_id, blog_post_title,
    355 blog_post_description, dateAsked, blog_post_answers_id, parent_id, reply, date_answers,
    356 cities_id, cities_name, reports_id, reports_description, pets_id, pet_status_id, node,
    357 pet_status_type, therapy_id, appoitmentDate, therapy_description, diagnostics_id,
    358 diagnostics_description, medecines_id, medecines_description,
    359 manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
    360 color, dateOfBirthday, pets_description, type_of_pets_id, pet_galery_id, image, orders_id,
    361 products_id, products_name, products_description, category, dateAdded,isActive, price,
    362 available_quantity, quantity, breeds_id, breeds_name, kind_of_pet, type_of_pets_description
     351\\ **R,,2222,,** ('''roles_id''', users_id, first_name, last_name,
     352phoneNumber, email, password, blog_post_for_consultation_id, blog_post_title,
     353blog_post_description, dateAsked, '''blog_post_answers_id''', parent_id, reply, date_answers,
     354'''cities_id''', cities_name, '''reports_id''', reports_description, pets_id, pet_status_id, node,
     355pet_status_type, '''therapy_id''', appoitmentDate, therapy_description, '''diagnostics_id''',
     356diagnostics_description, '''medecines_id''', medecines_description,
     357manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
     358color, dateOfBirthday, pets_description, type_of_pets_id, '''pet_galery_id''', image, '''orders_id''',
     359'''products_id''', products_name, products_description, category, dateAdded,isActive, price,
     360available_quantity, quantity, '''breeds_id''', breeds_name, kind_of_pet, type_of_pets_description
    363361)
    364362\\ **F,,2222,,** = (users_id -> first_name, last_name, phoneNumber, email, password, roles_id
     
    381379)
    382380\\ **R,,2222,, n R,,2221,,** = roles_id, клуч за R2221 => нема губење на податоци.
     381\\ -----------------------------------------------------------------------------------------------------------------------------
    383382
    384383\\ **R,,2222,,** не е во 3NF поради users_id -> first_name, last_name, phoneNumber, email, password, roles_id
     
    414413)
    415414\\ **R,,22222,, n R,,22221,,** = users_id, клуч за R22221 => нема губење на податоци.
     415\\ -----------------------------------------------------------------------------------------------------------------------------
    416416
    417417\\ **R,,22222,,** не е во 3NF поради blog_post_for_consultation_id -> blog_post_title, blog_post_description, dateAsked, users_id
    418418\\ blog_post_for_consultation_id +={blog_post_for_consultation_id, blog_post_title, blog_post_description, dateAsked, users_id}
    419 \\ **R,,222221,,** (blog_post_for_consultation_id, blog_post_title, blog_post_description, dateAsked, users_id) клуч blog_post_for_consultation_id BCNF
     419\\ **R,,222221,,** ('''blog_post_for_consultation_id''', blog_post_title, blog_post_description, dateAsked, users_id) клуч blog_post_for_consultation_id BCNF
    420420\\ **F,,222221,,** { blog_post_for_consultation_id -> blog_post_title, blog_post_description, dateAsked, users_id}
    421421\\ **R,,222222,,** (blog_post_for_consultation_id,'''blog_post_answers_id''', parent_id, reply, date_answers,
    422 cities_id, cities_name, reports_id, reports_description, pets_id, pet_status_id, node,
    423 pet_status_type, therapy_id, appoitmentDate, therapy_description, '''diagnostics_id''',
     422cities_id, cities_name, '''reports_id''', reports_description, pets_id, pet_status_id, node,
     423pet_status_type, '''therapy_id''', appoitmentDate, therapy_description, '''diagnostics_id''',
    424424diagnostics_description, '''medecines_id''', medecines_description,
    425425manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
     
    445445)
    446446\\ **R,,222222,, n R,,222221,,** = blog_post_for_consultation_id, клуч за R,,222221,, => нема губење на податоци.
     447\\ -----------------------------------------------------------------------------------------------------------------------------
    447448
    448449\\ **R,,222222,,** не е во 2NF поради blog_post_answers_id ->parent_id, reply, date_answers, blog_post_for_consultation_id, users_id
     
    474475)
    475476\\ **R,,2222222,, n R,,2222221,,** = blog_post_answers_id, клуч за R,,2222221,, => нема губење на податоци.
     477\\ -----------------------------------------------------------------------------------------------------------------------------
    476478
    477479\\ **R,,2222222,,** не е во 2NF поради cities_id-> cities_name
     
    502504)
    503505\\ **R,,22222222,, n R,,22222221,,** = cities_id, клуч за R,,22222221,, => нема губење на податоци.
     506\\ -----------------------------------------------------------------------------------------------------------------------------
    504507
    505508\\ **R,,22222222,,** не е во 2NF поради reports_id-> reports_description, pets_id, users_id
     
    529532)
    530533\\ **R,,222222222,, n R,,222222221,,** = reports_id, клуч за R,,222222221,, => нема губење на податоци.
     534\\ -----------------------------------------------------------------------------------------------------------------------------
    531535
    532536\\ **R,,222222222,,** не е во 3NF поради pet_status_id->node, pet_status_type
    533537\\ pet_status_id +={pet_status_id, node, pet_status_type}
    534 \\ **R,,2222222221,,** (pet_status_id, node, pet_status_type) клуч pet_status_id BCNF
     538\\ **R,,2222222221,,** ('''pet_status_id''', node, pet_status_type) клуч pet_status_id BCNF
    535539\\ **F,,2222222221,,** {pet_status_id->node, pet_status_type}
    536 \\ **R,,2222222222,,** ( pet_status_id, therapy_id, appoitmentDate, therapy_description, diagnostics_id,
    537 diagnostics_description, medecines_id, medecines_description,
    538 manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
    539 color, dateOfBirthday, pets_description, type_of_pets_id, pet_galery_id, image, orders_id,
    540 products_id, products_name, products_description, category, dateAdded,isActive, price,
    541 available_quantity, quantity, breeds_id, breeds_name, kind_of_pet, type_of_pets_description
     540\\ **R,,2222222222,,** ( '''pet_status_id''', '''therapy_id''', appoitmentDate, therapy_description, '''diagnostics_id''',
     541diagnostics_description, '''medecines_id''', medecines_description,
     542manufacturers_id, city, state, manufacturers_name, manufacturers_description, pets_name,
     543color, dateOfBirthday, pets_description, type_of_pets_id, '''pet_galery_id''', image, '''orders_id''',
     544'''products_id''', products_name, products_description, category, dateAdded,isActive, price,
     545available_quantity, quantity, '''breeds_id''', breeds_name, kind_of_pet, type_of_pets_description
    542546)
    543547\\ **F,,2222222222,,** = (therapy_id->appoitmentDate, therapy_description
     
    554558)
    555559\\ **R,,2222222222,, n R,,2222222221,,** = pet_status_id, клуч за R,,2222222221,, => нема губење на податоци.
     560\\ -----------------------------------------------------------------------------------------------------------------------------
    556561
    557562\\ **R,,2222222222,,** не е во 2NF поради therapy_id->appoitmentDate, therapy_description
    558563\\  therapy_id +={ therapy_id, appoitmentDate, therapy_description}
    559 \\ **R,,22222222221,,** (therapy_id, appoitmentDate, therapy_description) клуч therapy_id BCNF
     564\\ **R,,22222222221,,** ('''therapy_id''', appoitmentDate, therapy_description) клуч therapy_id BCNF
    560565\\ **F,,22222222221,,** {therapy_id->appoitmentDate, therapy_description}
    561566\\ **R,,22222222222,,** ( '''therapy_id''', '''diagnostics_id''', diagnostics_description, '''medecines_id''', medecines_description,
     
    577582)
    578583\\ **R,,22222222222,, n R,,22222222221,,** = therapy_id, клуч за R,,22222222221,, => нема губење на податоци.
     584\\ -----------------------------------------------------------------------------------------------------------------------------
    579585
    580586\\ **R,,22222222222,,** не е во 2NF поради diagnostics_id-> diagnostics_description
     
    600606)
    601607\\ **R,,222222222222,, n R,,222222222221,,** = diagnostics_id, клуч за R,,222222222221,, => нема губење на податоци.
     608\\ -----------------------------------------------------------------------------------------------------------------------------
    602609
    603610\\ **R,,222222222222,,** не е во 2NF поради medecines_id-> medecines_name, medecines_description, manufacturers_id 
     
    620627)
    621628\\ **R,,2222222222222,, n R,,2222222222221,,** = medecines_id, клуч за R,,2222222222221,, => нема губење на податоци.
     629\\ -----------------------------------------------------------------------------------------------------------------------------
    622630
    623631\\ **R,,2222222222222,,** не е во 3NF поради manufacturers_id->city, state, manufacturers_name, manufacturers_description 
    624632\\  manufacturers_id+={ manufacturers_id, city, state, manufacturers_name, manufacturers_description}
    625 \\ **R,,22222222222221,,** ( manufacturers_id, city, state, manufacturers_name, manufacturers_description) клуч manufacturers_id BCNF
     633\\ **R,,22222222222221,,** ( '''manufacturers_id''', city, state, manufacturers_name, manufacturers_description) клуч manufacturers_id BCNF
    626634\\ **F,,22222222222221,,** {manufacturers_id->city, state, manufacturers_name, manufacturers_description }
    627 \\ **R,,22222222222222,,** ( manufacturers_id, pets_name,color, dateOfBirthday, pets_description, type_of_pets_id, pet_galery_id, image, orders_id,
    628 products_id, products_name, products_description, category, dateAdded,isActive, price,
    629 available_quantity, quantity, breeds_id, breeds_name, kind_of_pet, type_of_pets_description
     635\\ **R,,22222222222222,,** ( '''manufacturers_id''', pets_name,color, dateOfBirthday, pets_description, type_of_pets_id, '''pet_galery_id''', image, '''orders_id''',
     636'''products_id''', products_name, products_description, category, dateAdded,isActive, price,
     637available_quantity, quantity, '''breeds_id''', breeds_name, kind_of_pet, type_of_pets_description
    630638)
    631639\\ **F,,22222222222222,,** = (pets_id-> pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id
     
    638646)
    639647\\ **R,,22222222222222,, n R,,22222222222221,,** = manufacturers_id, клуч за R,,22222222222221,, => нема губење на податоци.
     648\\ -----------------------------------------------------------------------------------------------------------------------------
    640649
    641650
    642651\\ **R,,22222222222222,,** не е во 3NF поради pets_id-> pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id 
    643652\\  pets_id+={ pets_id, pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id}
    644 \\ **R,,222222222222221,,** ( pets_id, pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id) клуч pets_id BCNF
     653\\ **R,,222222222222221,,** ( '''pets_id''', pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id) клуч pets_id BCNF
    645654\\ **F,,222222222222221,,** {pets_id-> pets_name, color, dateOfBirthday, pets_description, type_of_pets_id, users_id, pet_status_id}
    646 \\ **R,,222222222222222,,** ( pets_id, pet_galery_id, image, orders_id,
    647 products_id, products_name, products_description, category, dateAdded,isActive, price,
    648 available_quantity, quantity, breeds_id, breeds_name, kind_of_pet, type_of_pets_description
     655\\ **R,,222222222222222,,** ( '''pets_id''', '''pet_galery_id''', image, '''orders_id''',
     656'''products_id''', products_name, products_description, category, dateAdded,isActive, price,
     657available_quantity, quantity, '''breeds_id''', breeds_name, kind_of_pet, type_of_pets_description
    649658)
    650659\\ **F,,222222222222222,,** = (pet_galery_id->image, pets_id
     
    656665)
    657666\\ **R,,222222222222222,, n R,,222222222222221,,** = pets_id, клуч за R,,222222222222221,, => нема губење на податоци.
     667\\ -----------------------------------------------------------------------------------------------------------------------------
    658668
    659669\\ **R,,222222222222222,,** не е во 2NF поради pet_galery_id->image, pets_id
     
    686696)
    687697\\ **R,,22222222222222222,, n R,,22222222222222221,,** = orders_id , клуч за R,,22222222222222221,, => нема губење на податоци.
     698\\ -----------------------------------------------------------------------------------------------------------------------------
    688699
    689700\\ **R,,22222222222222222,,** не е во 2NF поради products_id-> products_name, products_description, category, dateAdded, isActive, price, available_quantity
     
    698709)
    699710\\ **R,,222222222222222222,, n R,,222222222222222221,,** = products_id, клуч за R,,222222222222222221,, => нема губење на податоци.
     711
     712\\ -----------------------------------------------------------------------------------------------------------------------------
    700713
    701714\\ **R,,222222222222222222,,** не е во 2NF поради products_id, orders_id → quantity
     
    726739\\ **F,,222222222222222222222,,** = {}
    727740\\ **R,,222222222222222222222,, n R,,222222222222222222221,,** = type_of_pets_id, клуч за R,,222222222222222222221,, => нема губење на податоци.
    728 
     741\\ -----------------------------------------------------------------------------------------------------------------------------
    729742{{{
    730743Резултат