Sei sulla pagina 1di 1

insert into pedidos values (2,110070,'1997-09-12',2101,110,'aci', '41002',9,34.89); insert into pedidos values (3,110070,'1997-10-15',2101,110,'rei', '2a44g',3,90.

23); savepoint resta; update productos set existencia = existencia- (select cant from pedidos where nu mpedido = 110070) where idproducto = '41002'; update productos set existencia = existencia-(select cant from pedidos where num pedido=110070) where idproducto = '2a44g'; savepoint aumentarlimite; update clientes set Limitecredito = Limitecredito + (select (importe*0.1) from p edidos where numpedido = 110070) where numclien = 2101; savepoint aumentarventa; update empleados set ventas = ventas + (select importe from pedidos where numped ido = 110070) where numemp = 110; COMMIT; ROLLBACK;

Potrebbero piacerti anche