Você está na página 1de 1

select cd_estoque,cd_setor, cd_multi_empresa --DELETE from dbamv.estoque e where E.cd_estoque = 11 order by 1 desc begin pkg_mv2000.

atribui_empresa(10); end; select * --delete from dbamv.est_pro e where e.cd_estoque = 11 select * from user_tables t where t.table_name like '%CAB%' select * from lot_pro_est_pro select * from dbamv.lot_pro l where l.cd_estoque = 11 select * from dbamv.cab_saida where cd_estoque = 11 SELECT * DELETE FROM DBAMV.ITMVTO_ESTOQUE m WHERE M.cd_mvto_estoque IN ( SELECT M.cd_mvto_estoque FROM DBAMV.MVTO_ESTOQUE m WHERE m.cd_estoque = 11) And MVTO_ESTOQUE.cd_estoque in (Select usu_estoque.cd_estoque From dbamv.usu_es toque Where usu_estoque.tp_usuario <> 'S' AND USU_ESTOQUE.CD_ESTOQUE IN (SELECT CD_ESTOQUE FROM DBAMV.ESTOQUE WHERE CD_MULTI_EMPRESA = PKG_MV2000.LE_EMPRESA) an d usu_estoque.cd_id_do_usuario = (Select USERNAME From User_users)) and mvto_est oque.cd_estoque in (select cd_estoque from dbamv.estoque where cd_multi_empresa = Pkg_Mv2000.Le_Empresa ) And MVTO_ESTOQUE.CD_SETOR IN (select setor.cd_setor from dbamv.setor where setor.cd_multi_empresa = Pkg_Mv2000.Le_Empresa) and (CD_E STOQUE 1) and (rg) order by CD_MVTO_ESTOQUE

Você também pode gostar