Stringsql="select b.*, ba.nTag, ba.nAuthorizeID from tIPBrand b, tIPBrandAuthorize ba where b.sOrgNO = ? and b.nTag&1 = 0 and b.sIPID = ba.sIPID and ba.nTag&1 = 0 and ba.sCustNO = ?";
Stringsql="select b.*, ba.nTag nTag_Dtl, ba.nAuthorizeID from tIPBrand b, tIPBrandAuthorize ba where b.sOrgNO = ? and b.nTag&1 = 0 and b.sIPID = ba.sIPID and ba.nTag&1 = 0 and ba.sCustNO = ?";