SELECT * FROM subgrupoart WHERE cod_grupoart = '00003'AND COD_SUBGRUPO like '%00'
AND `COD_GRUPOART` in (select grupo from articulos where `MARCA`='00600')
AND concat(`cod_grupoart`,left(`COD_SUBGRUPO`,2)) in (select concat(`grupo`,left(subgrupo,2)) from articulos where `MARCA`='00600' )