Está en la página 1de 2

UPDATE SIG_ORDEN_PRESUPUESTO SET EXP_SIAF = 6001, ESTADO_EXP = '2' WHERE

ANO_EJE = 2017 and SEC_EJEC = 726 and NRO_ORDEN = 3433 and TIPO_BIEN = 'S' and
TIPO_PPTO = 1 and SEC_ORDEN = 1;
UPDATE SIG_ORDEN_SECUENCIA SET ESTADO_FASE = '2' WHERE ANO_EJE = 2017 and
SEC_EJEC = 726 and NRO_ORDEN = 3433 and TIPO_BIEN = 'S' and TIPO_PPTO = 1 and
SEC_ORDEN = 1;
UPDATE SIG_ORDEN_ADQUISICION SET ESTADO_SIAF = '2', EXP_SIAF = 6001 WHERE
ANO_EJE = 2017 and SEC_EJEC = 726 and NRO_ORDEN = 3433 and TIPO_BIEN = 'S' and
TIPO_PPTO = 1;
-------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------
SERVERPECH01 (Sigachinecas)(Fiscalizacion)(BD_SIGACHINECAS)(Tablas = hcc,
hcc_devengado y HCC_DETALLE)
Administrador
PChinecasA2020

(Codigo de Consulta de la BD_Sigachinecas para cambiar datos de montos y total)

(Consulta para Selecionar las Tablas) O (Para Visualizar los datos que se ingreso o Modifico en
las tablas)
select * from hcc where ano_eje = '2020' and n_hcc = '52'
select * from hcc_devengado where ano_eje = '2020' and n_hcc = '52'
select * from HCC_Detalle where ano_eje = '2020' and n_hcc = '52'

(Consulta para cambiar los datos)(se cambio de 1500 a 4500)


UPDATE hcc set monto = '4500', total = '4500' where ano_eje = '2020' and n_hcc = '52'
UPDATE hcc_devengado set monto = '1500' where ano_eje = '2020' and n_hcc = '52'
UPDATE HCC_Detalle set monto = '4500' where ano_eje = '2020' and n_hcc = '52'
--------------------------------------------------------------------------------------------
(Cambiar en la Tabla hcc_devengado el Monto de 4500 a 1500)
UPDATE hcc_devengado set monto = '1500' where ano_eje = '2020' and n_hcc = '52'
(Para Visualizar los datos que se ingreso o Modifico en las tablas)
select * from hcc_devengado where ano_eje = '2020' and n_hcc = '52
---------------------------------------------------------------------------------------------
(Ingresar Datos a la Tabla = hcc/ el monto 1500)
UPDATE hcc set Saldo = '1500' where ano_eje = '2020' and n_hcc = '52'
(Para Visualizar los datos que se ingreso o Modifico en las tablas)
select * from hcc where ano_eje = '2020' and n_hcc = '52
---------------------------------------------------------------------------------------------
(Para Visualizar los datos que se ingreso o Modifico en las tablas)(toda una Fila)
Select * from hcc where ano_eje = '2020' and n_hcc = '162'
Select * from hcc where ano_eje = '2020' and n_hcc = '52'
Select * from hcc_devengado where ano_eje = '2020' and n_hcc = '162'
Select * from hcc_devengado where ano_eje = '2020' and n_hcc = '52'
Select * from HCC_Detalle where ano_eje = '2020' and n_hcc = '162'
Select * from HCC_Detalle where ano_eje = '2020' and n_hcc = '52'

(Para Ingresar o Modificar Datos en las Tablas)

UPDATE hcc set monto = '2200', total = '2200' where ano_eje = '2020' and n_hcc = '162'
UPDATE hcc set saldo = '1100' where ano_eje = '2020' and n_hcc = '162'
UPDATE hcc_devengado set monto = '1100' where ano_eje = '2020' and n_hcc = '162'
UPDATE HCC_Detalle set monto = '2200' where ano_eje = '2020' and n_hcc = '162'
---------------------------------------------------------------------------------------------
select * from hcc (Para Visualizar tabla hcc Completa )

select * from hcc where ano_eje = '2020' and n_hcc = '195'


select * from hcc_devengado where ano_eje = '2020' and n_hcc = '195'
select * from HCC_Detalle where ano_eje = '2020' and n_hcc = '195'

(Para Eliminar Todo un Registro de la Tabla hcc)


delete hcc where ano_eje = '2020' and n_hcc = '195'
delete hcc_devengado where ano_eje = '2020' and n_hcc = '195'
delete HCC_Detalle where ano_eje = '2020' and n_hcc = '195'

------------------------------------------------------------------------------------------------
select * from hcc where ano_eje = '2020' and n_hcc = '205'
select * from hcc_devengado where ano_eje = '2020' and n_hcc = '205'
select * from HCC_Detalle where ano_eje = '2020' and n_hcc = '205'
(Para Cambiar Nombres y N° RUC)
UPDATE hcc set nombres = 'VERA CRUZATE VIRGIA MARISELA' where ano_eje = '2020'
and n_hcc = '205'
UPDATE hcc set ruc = '10328459308' where ano_eje = '2020' and n_hcc = '205'

También podría gustarte