I have created 2 table.Brand and Product.In both table one id is primary key and it has identity.According to foreign key constrain,it should be primary key of another table.I want to make Brandid as fk of table Product.How to do that.I have alreadyt created table.I am using sql server 2005.
Brand:
id : -primary key,identity
name
lname
Product :
id :- primary key,identity
location
Brandid (id of Brand table)
1 Answer