Hey guys, I am really new at this and I am trying to do the following:
I need to split keywords entered into search box eg. if someone enters 'Research Design' in, it needs to split the words and then build an Sql query that will give me the following output :
SELECT [ProjectName], [ProjectID]
FROM [ProjectList]
WHERE ([ProjectName] LIKE '%' + 'Research' + '%') AND ([ProjectName] LIKE '%' + 'Design' + '%'
I figured I would use this method as a basic database search engine.
Thanks guys.
I need to split keywords entered into search box eg. if someone enters 'Research Design' in, it needs to split the words and then build an Sql query that will give me the following output :
SELECT [ProjectName], [ProjectID]
FROM [ProjectList]
WHERE ([ProjectName] LIKE '%' + 'Research' + '%') AND ([ProjectName] LIKE '%' + 'Design' + '%'
I figured I would use this method as a basic database search engine.
Thanks guys.
Comment