Link to home
Start Free TrialLog in
Avatar of aarontham
aarontham

asked on

DB Design Search data

I have vb.net customer database. there is some client sell many brand like HP,IBM,NEC and etc.
shoud i store all those brand into 1 column like HP,IBM,NEC
or
use diffrence column for 1 brand.

i need to search let say HP. so all those client who sell HP will show up from the dataset.
Avatar of Aneesh
Aneesh
Flag of Canada image

You can store the brandIs in a different table and store their curresponding ids in the Client table

Table  Brands (BrandID int identity, BrandName varchar(120)  )
Table  ClientInfo (ClientId int, BrandID int )
Avatar of aarontham
aarontham

ASKER

If let say i have a client sell few brand then how to store?
You should create a new table with the customer ID and the brand. Then you make a inner join to get all the brands for each customer.
Hi jpaulino,

can i have saome sample how this sample look like.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial