I am trying to do a detailed search with the full text of asp and SQL Server.
When sending a keyword, I need to search in multiple tables. For instance,
Table - Members
Table - Education
My request;
select mem.member_id, mem.contact_name, edu.member_id, edu.school_name from Members mem FULL OUTER JOIN Education edu on edu.member_id=mem.member_id where CONTAINS (mem.contact_name, '""*"&keyword&"*""') or CONTAINS (edu.school_name, '""*"&keyword&"*""') order by mem.member_id desc;
This query works, but it takes a very long time to complete.
Image that keyword is Phill; If mem.contact_name matches, then list it, or if edu.school_name matches , list those whose education matches the keyword.
Hope I could explain well :) Sorry for my English though.
source share