Changes between Version 25 and Version 26 of Normalization
- Timestamp:
- 02/24/25 11:09:38 (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Normalization
v25 v26 14 14 Првична релација (не нормализирана): 15 15 16 R = { d_embg,name,surname, birthdate,policy,kontakt,c_id,email,pass,type }16 R = {**d_embg**,name,surname, birthdate,policy,kontakt,**c_id**,email,pass,type } 17 17 18 18 ||= d_embg =||= name =||= surname =||= birthdate =||= policy =||= kontakt =||= c_id =||= email =||= password =||= type =|| … … 22 22 Функциски зависности: 23 23 24 d_embg→ name,surname, birthdate,policy,kontakt24 **d_embg** → name,surname, birthdate,policy,kontakt 25 25 26 c_id→ email, pass, type26 **c_id** → email, pass, type 27 27 28 28 Декомпозиција во 3НФ: 29 29 30 R1 = { d_embg,name,surname, birthdate,policy,kontakt }30 R1 = { **d_embg**,name,surname, birthdate,policy,kontakt } 31 31 32 R2 = { c_id,email,pass,type }32 R2 = { **c_id**,email,pass,type } 33 33 34 34 35 === 2. Менаџирање на осигурителни полиси(Package,Covers)35 === 2. Менаџирање на пакети и покривања (Package,Covers) 36 36 Првична релација: 37 37 … … 56 56 R3 = { code,cov_id } 57 57 58 === 3. Менаџирање на авто осигурување (Auto_pol, Vehicle)58 === 3. Менаџирање на осигурување (Policy,Auto_pol,Vehicle,Property_pol,Property,Travel_pol,Pol_osi) 59 59 Првична релација: 60 60 61 R = { a_id, pol_id, v_id, marka, model, license_plate, type}61 R = { p_id, s_date, e_date, a_id, pol_id, v_id, marka, model, license_plate, type, pr_id, pol_id, prop_id, address, floor, year_build, security, tr_id, pol_id, o_embg, name, surname, birthdate, kontakt} 62 62 63 ||= a_id =||= pol_id =||= v_id =||= marka =||= model =||= license_plate =||= type=||64 ||= 1 =||= 1 =||= 1 =||= Audi =||= A6 =||= SK1234AB =||= car=||65 ||= 2 =||= 2 =||= 2 =||= BMW =||= X5 =||= KU5689AD =||= SUV=||63 ||= p_id =||= s_date =||= e_date =||= a_id =||= pol_id =||= v_id =||= marka =||= model =||= license_plate =||= type =||= pr_id =||= pol_id =||= prop_id =||= address =||= floor =||= year_build =||= security =||= tr_id =||= pol_id =||= o_embg =||= name =||= surname =||= birthdate =||= kontakt =|| 64 ||= 1 =||= 2025-01-15 =||= 2025-01-25 =||= 1 =||= 1 =||= 1 =||= Audi =||= A6 =||= SK1234AB =||= car =||= 1 =||= 1 =||= 1 =||= Skopje, Center, Blvd =||= 3 =||= 2015-03-12 =||= 1 =||= 1 =||= 1 =||= 210699945 =||= Ardit =||= Ameti =||= 19990621 =||= 070112546 =|| 65 ||= 2 =||= 2025-02-04 =||= 2025-02-14 =||= 2 =||= 2 =||= 2 =||= BMW =||= X5 =||= KU5689AD =||= SUV =||= 2 =||= 2 =||= 2 =||= Kumanovo, Center, Blvd =||= 2 =||= 2001-02-05 =||= 0 =||= 2 =||= 2 =||= 290699842 =||= Armend =||= Selmani =||= 19980629 =||= 071258963 =|| 66 66 67 67 Функциски зависности: 68 69 p_id → s_date,e_date 68 70 69 71 a_id → pol_id … … 71 73 v_id → marka,model,license_plate,type 72 74 73 Декомпозиција во 3НФ:74 75 R1 = { a_id,pol_id }76 77 R2 = { v_id,marka,model,license_plate,type }78 79 R3 = { a_id, v_id } (за поврзување на осигурувањето со возилата)80 81 82 === 4. Менаџирање на имотно осигурување (Property_pol,Property)83 Првична релација:84 85 R = { pr_id,pol_id,prop_id,address,floor,year_build,security}86 87 ||= pr_id =||= pol_id =||= prop_id =||= address =||= floor =||= year-build =||= security =||88 ||= 1 =||= 1 =||= 1 =||= Skopje, Center, Blvd =||= 3 =||= 2015-03-12 =||= 1 =||89 ||= 2 =||= 2 =||= 2 =||= Kumanovo,Center,Blvd =||= 2 =||= 2001-02-05 =||= 1 =||90 91 Функциски зависности:92 93 75 pr_id → pol_id 94 76 95 prop_id → address,floor,year_build,security 77 prop_id → address, floor,year_build,security 78 79 tr_id → pol_id 80 81 o_embg → name,surname,birthdate,kontakt 96 82 97 83 Декомпозиција во 3НФ: 98 84 99 R1 = { p r_id,pol_id}85 R1 = { p_id,s_date,e_date } 100 86 101 R2 = { prop_id,address,floor,year_build,security}87 R2 = { a_id,pol_id } 102 88 103 R3 = { pr_id,prop_id } 89 R3 = { v_id,marka,model,license_plate,type } 90 91 R4 = { pr_id,pol_id } 92 93 R5 = { prop_id,address,floor,year_build,security } 94 95 R6 = { tr_id,pol_id} 96 97 R7 = { o_embg,name,surname,birthdate,kontakt } 104 98 105 99 106 === 5. Менаџирање на патничко осигурување (Travel_pol,Pol_osi)107 Првична релација:108 100 109 R = { tr_id, pol_id,o_embg,name,surname,birthdate,kontakt }110 111 ||= tr_id =||= pol_id =||= o_embg =||= name =||= surname =||= birthdate =||= kontakt =||112 ||= 1 =||= 1 =||= 120399145 =||= Martin =||= Velinov =||= 19910312 =||= 070111222 =||113 ||= 2 =||= 2 =||= 111097842 =||= Smilka =||= Trajanov =||= 19781011 =||= 071555666 =||114 115 Функциски зависности:116 117 tr_id → pol_id118 119 o_embg → name,surname,birthdate,kontakt120 121 Декомпозиција во 3НФ:122 123 R1 = { tr_id,pol_id }124 125 R2 = { o_embg,name,surname,birthdate,kontakt }126 127 R3 = { tr_id,o_embg }128 101 129 102 ----