Not sure if this should be done in a view, or stored procedure. Here is an example table:
Table A:
calldate
fielda1
fielda2
fielda3
Ok, I need to do a search to see "doe" is contained in either fielda1, fielda2, fielda3. "doe" could only be contained in 1 of the fields, not all 3. I could end up having 10 fields to check, or 2. I was wondering if the only way of doing this is in the WHERE clause such as "WHERE fielda1="doe" or fielda2="doe"" etc etc..
Any ideas?
Thanks,
Chris
Table A:
calldate
fielda1
fielda2
fielda3
Ok, I need to do a search to see "doe" is contained in either fielda1, fielda2, fielda3. "doe" could only be contained in 1 of the fields, not all 3. I could end up having 10 fields to check, or 2. I was wondering if the only way of doing this is in the WHERE clause such as "WHERE fielda1="doe" or fielda2="doe"" etc etc..
Any ideas?
Thanks,
Chris