G
Guest
Hello,
I have a table:
empID
interestID
empInterests
where this table contains a list of interests for each employee.
So, for example,
empID interestID empInterests
---------------------------------------------------
1 1 car
1 2 books
Now, the query I want to make should be able to match the pattern "cars"
with the first record; it should also match the pattern "book" with the
second record.
Basically, a match should be returned if the word in the 'empInterests'
field is found in the pattern or the word in the pattern is found in the
'empInterests' field.
I tried the 'like' operator, but it did not work for me the way i want it to.
Please help
I have a table:
empID
interestID
empInterests
where this table contains a list of interests for each employee.
So, for example,
empID interestID empInterests
---------------------------------------------------
1 1 car
1 2 books
Now, the query I want to make should be able to match the pattern "cars"
with the first record; it should also match the pattern "book" with the
second record.
Basically, a match should be returned if the word in the 'empInterests'
field is found in the pattern or the word in the pattern is found in the
'empInterests' field.
I tried the 'like' operator, but it did not work for me the way i want it to.
Please help