SELECT * FROM COMPANY WHERE cc_companyid like '' and cc_delflag<1
Resource id #7