I have a query like this :
select * from employee where (employee_id in (SELECT DISTINCT
SubTable.blockid
FROM
broad.territory_block
BlockSubTable
WHERE ( (
BlockSubTable.id IN ( 398 ) ))))
Now here my employee_id is of 10 digits and the output of the subquery would be of 13 digits. I tried using left('',10) for matching the subquery output but getting error for misplaced left function. Can someone please help me how should I use left function to match the result. I need to match the employee_id with the subquery output
P.S : This is not the actual query, created for explaining the problem
employeeidto something calledblockid.