select * from operadores;
select * from astoh;
select * from cheques where chq_estado=2;
select * from astoh where codcomp(ash_comprob)='DA' and ash_numero=5;
select * from astoctas where astc_idastoh=3398;
select * from ctacble where cbl_id=1278;
select * from coprop;
select cop_id from coprop order by 1;
select cop_id,cop_unifun from coprop order by 1;
select * from coprop;
select * from comprop;
delete from comprop where cmpr_id=1;
insert into comprop (cmpr_codemp,cmpr_idptov,cmpr_division,cmpr_centro,cmpr_idcopr,cmpr_rubcar,cmpr_cargo,cmpr_canti,cmpr_precio,cmpr_importe,cmpr_fecalt,clq_leyen) values (1,1,1,1,uni,6,55,1,0,imp,'28-02-2017','IDENTIFICADOR DE UNIDAD FUNCIONAL');
delete from comprop;
select * from comprop;
select compr_srubcar from comprop where cmpr_cargo=55;
select cmpr_srubcar from comprop where cmpr_cargo=55;
select cmpr_rubcar from comprop where cmpr_cargo=55;
\d comprop
select * comprop;
select * from comprop;
select cmpr_idcopr,cmpr_importe,cmpr_precio from comprop;
update comprop set cmpr_importe=(cmpr_idcopr-82)/100;
select cmpr_idcopr,cmpr_importe,cmpr_precio from comprop;
update comprop set cmpr_importe=(cmpr_idcopr::(numeric)-82)/100;
update comprop set cmpr_importe=((cmpr_idcopr::numeric)-82)/100;
select cmpr_idcopr,cmpr_importe,cmpr_precio from comprop;
update comprop set cmpr_precio=((cmpr_idcopr::numeric)-82)/100;
select cmpr_idcopr,cmpr_importe,cmpr_precio from comprop;
select cmpr_idcopr,cmpr_importe,cmpr_precio from comprop order by 1;
