Hi @ASHMITP
Two points to note:
- Wrong syntax:
aaa ='%aaa%'
- Long strings come before like, short strings come after like.
Try change this app.[Visit ID] ='%' + nap4.[Service Event ID] + '%'
to this nap4.[Service Event ID] LIKE '%' + app.[Visit ID] + '%'
Also, you can use CONCAT, like this : ON nap4.[Service Event ID] LIKE CONCAT('%',app.[Visit ID],'%')
Best regards,
LiHong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.