I am trying to run a fuultext search on two identical tables and use
UNION to join the results but no matter what I try, I get a syntax
error on the UNION clause.
Here's the query:
(SELECT ID, Area_Title, Page_Description, MATCH ( Page_Description )
AGAINST ( 'searchforest tree safety' ) AS Score FROM Site_Area_Lookup
WHERE MATCH ( Page_Description ) AGAINST ( 'forest tree safety' ))
UNION ALL
(SELECT ID, Area_Title, Page_Description, MATCH ( Page_Description )
AGAINST ( 'forest tree safety' ) AS Score FROM Site_Sub_Area_Lookup
WHERE MATCH ( Page_Description ) AGAINST ( 'forest tree safety' ))
I've also tried this without the parentheses around each full select
statement.
Has anyone been able to do this?
__
++Captain Tripps++
"My name is Lucifer, please bake my ham"