If for some reason you cannot live with fulfillment
select T1.name, T1.address, T1.phone, T2.title, T2.description from T1
Left Join T2 on T1.CID=T2.ID
where T2.STATUS = 1
Then I think you could
SELECT T1.name, T1.address, T1.phone, T2.title, T2.description
FROM ( SELECT CID, name, address, phone
FROM T1) AS T1
LEFT JOIN T2
ON T1.CID=T2.ID
WHERE STATUS = 1
Basically just skip getting the STATUS column from T1. Then there can be no conflict.
Bottomline; There is no easy way to do this. Closest to simple would be to have different STATUS column names, but even this seems extreme.
source
share