![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi, i have problem in design db of my small system so i will describe it all to get the whole picture here what i have: i have customers with many branches & each branch has many machines & each machine exists in many branches Also : each machine has many components each component exists in many machines Now i have : each branch has many machines with it's components , and each component in this branch machine has it's serial Number (this the most confusion part) now how i draw this in ERD and physical table as i am confused , thx ,waiting for your appreciated reply |
#3
| |||
| |||
|
|
hi, i have problem in design db of my small system so i will describe it all to get the whole picture here what i have: i have customers with many branches & each branch has many machines & each machine exists in many branches Also : each machine has many components each component exists in many machines Now i have : each branch has many machines with it's components , and each component in this branch machine has it's serial Number (this the most confusion part) now how i draw this in ERD and physical table as i am confused , thx ,waiting for your appreciated reply |
|
---< = MANY TO MANY |
#4
| |||
| |||
|
|
hi, i have problem in design db of my small system [quoted text clipped - 16 lines] thx ,waiting for your appreciated reply CUSTOMER ---<BRANCH>---MACHINE>---<COMPONENT ---< = 1 TO MANY ---< = MANY TO MANY So, customer(customer_id*,customer_name,customer_addre ss) branch(branch_id*,customer_id,branch_name,branch_a ddress) machine(machine_id*,machine_name) component(component_id*,component_serial_no,compon ent_name) branch_machine(branch_id*,machine_id*) machine_component(machine_id*,component_id*) *=(Part of) PRIMARY KEY |
#5
| |||
| |||
|
|
thx for reply but how can i write for each branch with each machine it's component serial? as component serial depends on certain machine on certain branch strawberry wrote: hi, i have problem in design db of my small system [quoted text clipped - 16 lines] thx ,waiting for your appreciated reply CUSTOMER ---<BRANCH>---MACHINE>---<COMPONENT ---< = 1 TO MANY ---< = MANY TO MANY So, customer(customer_id*,customer_name,customer_addre ss) branch(branch_id*,customer_id,branch_name,branch_a ddress) machine(machine_id*,machine_name) component(component_id*,component_serial_no,compon ent_name) branch_machine(branch_id*,machine_id*) machine_component(machine_id*,component_id*) *=(Part of) PRIMARY KEY |
#6
| |||
| |||
|
|
hi, i have problem in design db of my small system so i will describe it all to get the whole picture here what i have: i have customers with many branches & each branch has many machines & each machine exists in many branches Also : each machine has many components each component exists in many machines Now i have : each branch has many machines with it's components , and each component in this branch machine has it's serial Number (this the most confusion part) now how i draw this in ERD and physical table as i am confused , thx ,waiting for your appreciated reply |
![]() |
| Thread Tools | |
| Display Modes | |
| |