Question : hot to create foreign key values but without create the value table?

the relationship in my database contain lots of foreign key.
how to create the table without create another tbale which include the foreign key value?
e.g
1.entity= part
attribute=(part_no,part_name,quantity order, type,vendor_no)
vendor_no is foreign key of part table
 
2.entity=vendor
attribute=(ven_no,ven_name,add,part_no)
part_no is the foreign key of part table.
i using code to create.

 
thanks for help

Answer : hot to create foreign key values but without create the value table?

Recommendation:

1. Don't try to create these kind of Foreign Keys which creates Circular Dependency across tables which would create problems while

* replicating data
* Migrating data

Instead create another table which links the part_no with the vendor_no like

1.entity= part
attribute=(part_no,part_name,quantity order, type)
 
2.entity=vendor
attribute=(ven_no,ven_name,add)

3.entity= part_vendor
attribute=( id, part_no, vendor_no)
vendor_no is foreign key of part table
part_no is the foreign key of part table.
Random Solutions  
 
programming4us programming4us