update tcategoriasdetalle set disminuyesaldo='1' where categoria ='PRMINV' AND CGRUPOBALANCE='1'; update tcategoriasdetalle set disminuyesaldo='1' where categoria ='DESINV' AND CGRUPOBALANCE='2';