Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
HI,
Can any one solve this freetex error while using with innerjoins


C++
select count(candid) from HR_Candidate where freetext(Category,a.Category) and somecondition



here 'a' is another table object, and category belongs that table
Posted
Comments
[no name] 26-Jul-11 4:31am    
What is the error?
Tajuddin_HYD 26-Jul-11 5:52am    
HI shameel
Msg 102, Level 15, State 1, Line 12
Incorrect syntax near 'a'.
this is the error which am getting
[no name] 26-Jul-11 15:15pm    
Post your original script here.

1 solution

Just going on the query you posted here. You use the table alias 'a' in the freetext predicate but do not define that alias in the from clause.

SQL
select
    count(candid)
    from
        HR_Candidate a
where
    freetext(Category,a.Category)
    and
    somecondition
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900