Hello.
I need to write a SQL statement that will search an entire table's contents by one keyword.
For example I have TABLE1:
ID
Name
City
Job
Employer
Qualifications
I have a form where the user enters a keyword. I want to check if any of the listed fields above contain that keyword for a report. The long way is to write a SQL query such as: SELECT * from TABLE1 where Name = keyword or City = keyword or Job = keyword or Employer=keyword or Qualifications = keyword;
But is there a better way to do this?
-Sofia
I need to write a SQL statement that will search an entire table's contents by one keyword.
For example I have TABLE1:
ID
Name
City
Job
Employer
Qualifications
I have a form where the user enters a keyword. I want to check if any of the listed fields above contain that keyword for a report. The long way is to write a SQL query such as: SELECT * from TABLE1 where Name = keyword or City = keyword or Job = keyword or Employer=keyword or Qualifications = keyword;
But is there a better way to do this?
-Sofia