Question
Advanced Sarch
Hi,
I would appreciate some help with a query...
I have a table with 3 rows companyid, categoryid and categoryType
This is basically bunch of different category ids in one row and each company gets a set of categoryIDs
Looks something like this
companyID CatID CatType
5225 10 LOC
5225 12 LOC
5225 150 TYPE
5225 214 DUR
So i need to make a search with different options to find companies that matches these options
My dilemma is how can I search same row for all these options
If I do find where (( catID = 12 or catID = 10) and (catType = 'LOC')) then I can't match the other category types since LOC type has already narrow down the results?????
I would appreciate some help with a query...
I have a table with 3 rows companyid, categoryid and categoryType
This is basically bunch of different category ids in one row and each company gets a set of categoryIDs
Looks something like this
companyID CatID CatType
5225 10 LOC
5225 12 LOC
5225 150 TYPE
5225 214 DUR
So i need to make a search with different options to find companies that matches these options
My dilemma is how can I search same row for all these options
If I do find where (( catID = 12 or catID = 10) and (catType = 'LOC')) then I can't match the other category types since LOC type has already narrow down the results?????
