So why not create a VIEW of Common.dob.T_pin that has the FOC already fixed up as you want it??
That is:
Code:
CREATE VIEW whatever
AS
SELECT a,b,c,
(CASE WHEN LEFT(FOC,1) = 'R'
THEN 'F' + SUBSTRING(FOC,2,LEN(FOC)-1)
ELSE FOC
END) AS FOC
FROM Common.dbo.T_pin
And then use that in your JOIN??