SELECT
g.id,
g.groupCode,
cg.customerID
FROM tblConfig_Group g
LEFT JOIN tblConfig_CustomerGroup cg
ON g.groupCode = cg.groupCode
AND cg.customerID = '74';
SELECT
g.id,
g.groupCode,
cg.customerID
FROM tblConfig_Group g
LEFT JOIN tblConfig_CustomerGroup cg
ON g.groupCode = cg.groupCode
AND cg.customerID = '74';