Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 3544: Partial string matching requires character operands

Status
Not open for further replies.

btrini

Programmer
Nov 3, 2003
13
US
Hey guys,

I run the below code and get the error "3544: Partial string matching requires character operands"

Not sure why since both fields are character fields. I tried to Cast to ensure they are character.

Any help would be appreciated.

Select * From BA_HARD_HOLD BA
Left Join BMGPEMP.EMP_DY_CURR_HR HR ON (CAST(HR.FULL_NAME AS VARCHAR(250)) LIKE '%' + CAST(BA.FNAME AS VARCHAR(100)) + '%') AND (CAST(HR.FULL_NAME AS VARCHAR(250)) LIKE '%' + CAST(LNAME AS VARCHAR(100)) + '%') AND HR.AU_NUM = 2918;

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top