Im making a Join
I need to join these two tables, and pull Table1, however I still need for that letter Q to be equal to '0' and I need to keep the zero in front of the number..
Im trying to use REPLACE
I keep getting this error expected something between = and REPLACE.
What am I doing wrong?
Thank you
Code:
Select Table1
From Tables
Where Table1=Table2
Table1 Table2
09876 Q9876
09871 Q9871
02345 Q2345
09867 Q9867
I need to join these two tables, and pull Table1, however I still need for that letter Q to be equal to '0' and I need to keep the zero in front of the number..
Im trying to use REPLACE
Code:
SELECT Table1,
Table2,
FROM ACCT_HIST left join
ACCT_LIST on (Table1 = replace table2 ,'Q','0' left join
What am I doing wrong?
Thank you