You are on page 1of 20

APLIKASI PENGHASIL

QUERY
EDP AREA

Marketing

Produksi

CC
Halaman Marketing
REPRINT/AKTIF DO

RUBAH HARGA SO

RUBAH HARGA
HALAMAN PRODUKSI

RUBAH UPRICE /HARGA

DELETE PO/CR
Back INPUT DATA
Uprice
No PO No. Fcode Icode
Benar
1 PPA00001 PP091 MPB001 2000
PFL05177 PL118 FM8202PS
PFL05174 PP111 FM8202PS
PPA00924 PP166 FM8202PS
PPA00925 PP103A FM8202PS
PPA00925 PP177 FM8201PS
PPA00926 PP175 FM8202PS
PPA00926 PP165 FM8201PS
PPA00926 PP124 FM8201PS
PPA00926 PP175A FM8202PS
PPA00927 PP163 FM8202PS
PPA00927 PP134A FM8202PS
PPA00927 PP121 FM8202PS
PPA00927 PP134 FM8202PS
PPA00933 PP159 FM8201PS
PPA00933 PP159 FM8202PS
PPA00934 PP103A FM8202PS
PPA00935 PP098 FM8202PS
PPA00935 PP098A FM8202PS
PPA00935 PP098A FM8201PS
PPA00935 PP098 FM8201PS
PPA00936 PP163 FM8202PS
PPA00936 PP123 FM8202PS
PPA00936 PP023 FM8202PS
PPA00936 PP040 FM8202PS
PPA00937 PP173A FM8202PS
PPA00937 PP174A FM8202PS
PPA00938 PP178 FM8202PS
PPA00938 PP119 FM8202PS
PPA00938 PP178 FM8201PS
PPA00938 PP167 FM8202PS
PPA00953 PP169 FM8201PS
PPA00953 PP169 FM8202PS
PPA00953 PP072 FM8202PS
PPA00954 PP105 FM8202PS
PPA00954 PP121 FM8202PS
PPA00954 PP134 FM8202PS
PPA00956 PP166 FM8202PS
PPA00957 PP175A FM8202PS
PPA00957 PP175 FM8202PS
PPA00957 PP124B FM8201PS
PPA00962 PP134 FM8202PS
PPA00962 PP123 FM8202PS
PPA00962 PP121 FM8202PS
PPA00962 PP023 FM8202PS
PPA00962 PP040 FM8202PS
QUERY YANG DI HASILKAN
QUERY UPDATE UPRICE QUERY UPDATE POAMT & AMOUNT

update podet set uprice='2000' where update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PF
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PF
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where ponoupdate pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
update podet set uprice='' where pono update pomas set poamt=(select sum(poqty*uprice) from podet where pono='PP
podet where pono='PPA00001') where pono='PPA00001';
podet where pono='PFL05177') where pono='PFL05177';
podet where pono='PFL05174') where pono='PFL05174';
podet where pono='PPA00924') where pono='PPA00924';
podet where pono='PPA00925') where pono='PPA00925';
podet where pono='PPA00925') where pono='PPA00925';
podet where pono='PPA00926') where pono='PPA00926';
podet where pono='PPA00926') where pono='PPA00926';
podet where pono='PPA00926') where pono='PPA00926';
podet where pono='PPA00926') where pono='PPA00926';
podet where pono='PPA00927') where pono='PPA00927';
podet where pono='PPA00927') where pono='PPA00927';
podet where pono='PPA00927') where pono='PPA00927';
podet where pono='PPA00927') where pono='PPA00927';
podet where pono='PPA00933') where pono='PPA00933';
podet where pono='PPA00933') where pono='PPA00933';
podet where pono='PPA00934') where pono='PPA00934';
podet where pono='PPA00935') where pono='PPA00935';
podet where pono='PPA00935') where pono='PPA00935';
podet where pono='PPA00935') where pono='PPA00935';
podet where pono='PPA00935') where pono='PPA00935';
podet where pono='PPA00936') where pono='PPA00936';
podet where pono='PPA00936') where pono='PPA00936';
podet where pono='PPA00936') where pono='PPA00936';
podet where pono='PPA00936') where pono='PPA00936';
podet where pono='PPA00937') where pono='PPA00937';
podet where pono='PPA00937') where pono='PPA00937';
podet where pono='PPA00938') where pono='PPA00938';
podet where pono='PPA00938') where pono='PPA00938';
podet where pono='PPA00938') where pono='PPA00938';
podet where pono='PPA00938') where pono='PPA00938';
podet where pono='PPA00953') where pono='PPA00953';
podet where pono='PPA00953') where pono='PPA00953';
podet where pono='PPA00953') where pono='PPA00953';
podet where pono='PPA00954') where pono='PPA00954';
podet where pono='PPA00954') where pono='PPA00954';
podet where pono='PPA00954') where pono='PPA00954';
podet where pono='PPA00956') where pono='PPA00956';
podet where pono='PPA00957') where pono='PPA00957';
podet where pono='PPA00957') where pono='PPA00957';
podet where pono='PPA00957') where pono='PPA00957';
podet where pono='PPA00962') where pono='PPA00962';
podet where pono='PPA00962') where pono='PPA00962';
podet where pono='PPA00962') where pono='PPA00962';
podet where pono='PPA00962') where pono='PPA00962';
podet where pono='PPA00962') where pono='PPA00962';
Ketentuan PO/CR dalam Delete data
1. Jika Podet Cuma satu data Gunakan query update Pomas Update Poprn jadi C Jika Lebih Pomas Jangan di Update

Back INPUT DATA


No PO No. Fcode Icode CR NO
1 PPA00001 PP091 MPB001 PPA0001
PPA00527 PP090B FS8202LH PPA0857
PPA00528 PP090B FS8202LH PPA0858
PPA00529 PP090B FS9202LH PPA0859
PPA00531 PP090B FS8202LH PPA0861
PPA00532 PP090B FS8202LH PPA0862
PPA00533 PP090B FS8202LH PPA0863
pdate Poprn jadi C Jika Lebih Pomas Jangan di Update

DELETE PO/CR
QUERY DELETE PODET QUERY DELETE CR
delete from podet where pono='PPA00001' and icode='MPB0delete from crdet where cr
delete from podet where pono='PPA00527' and icode='FS82delete from crdet where cr
delete from podet where pono='PPA00528' and icode='FS82delete from crdet where cr
delete from podet where pono='PPA00529' and icode='FS92delete from crdet where cr
delete from podet where pono='PPA00531' and icode='FS82delete from crdet where cr
delete from podet where pono='PPA00532' and icode='FS82delete from crdet where cr
delete from podet where pono='PPA00533' and icode='FS82delete from crdet where cr
QUERY CROTH QUERY poprn POMAS QUERY UPDATE POAMT & AMOUNT
delete from crdet wherupdate pomas set poprn='C' where pono='P update pomas set poamt=(select sum(poqty*uprice) from
update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
delete from crdet whe update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
delete from crdet whe update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
delete from crdet whe update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
delete from crdet whe update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
delete from crdet whe update pomas set poprn='C' where pono='PPupdate pomas set poamt=(select sum(poqty*uprice) from
t sum(poqty*uprice) from podet where pono='PPA00001') where pono='PPA00001';
t sum(poqty*uprice) from podet where pono='PPA00527') where pono='PPA00527';
t sum(poqty*uprice) from podet where pono='PPA00528') where pono='PPA00528';
t sum(poqty*uprice) from podet where pono='PPA00529') where pono='PPA00529';
t sum(poqty*uprice) from podet where pono='PPA00531') where pono='PPA00531';
t sum(poqty*uprice) from podet where pono='PPA00532') where pono='PPA00532';
t sum(poqty*uprice) from podet where pono='PPA00533') where pono='PPA00533';
Back
PERUBAHAN HAR
donum hargabaru Tbdofaxmas
PFP15430 17500 update tbdofaxmas set open_price='17500', dostat='A' where
PFP15432 17500 update tbdofaxmas set open_price='17500', dostat='A' where
update tbdofaxmas set open_price='', dostat='A' where donum
update tbdofaxmas set open_price='', dostat='A' where donum
update tbdofaxmas set open_price='', dostat='A' where donum
update tbdofaxmas set open_price='', dostat='A' where donum
update tbdofaxmas set open_price='', dostat='A' where donum
ERUBAHAN HARGA DI SO
ccdomas
update ccdomas set price='17500' where donum='PFP15430
update ccdomas set price='17500' where donum='PFP15432
update ccdomas set price='' where donum='';
update ccdomas set price='' where donum='';
update ccdomas set price='' where donum='';
update ccdomas set price='' where donum='';
update ccdomas set price='' where donum='';
DI SO
sdodet
update sdodet set uprice='17500' where donum='PFP15430';
update sdodet set uprice='17500' where donum='PFP15432';
update sdodet set uprice='' where donum='';
update sdodet set uprice='' where donum='';
update sdodet set uprice='' where donum='';
update sdodet set uprice='' where donum='';
update sdodet set uprice='' where donum='';
Back

No. Do AKTIF DO
PFP13199 update tbdofaxmas set dostat='A' where donum='PFP13199';
PFP13304 update tbdofaxmas set dostat='A' where donum='PFP13304';
PFP13435 update tbdofaxmas set dostat='A' where donum='PFP13435';
PFP13448 update tbdofaxmas set dostat='A' where donum='PFP13448';
PFP13449 update tbdofaxmas set dostat='A' where donum='PFP13449';
PFP13482 update tbdofaxmas set dostat='A' where donum='PFP13482';
PFP13483 update tbdofaxmas set dostat='A' where donum='PFP13483';
PFP13485 update tbdofaxmas set dostat='A' where donum='PFP13485';
PFP13486 update tbdofaxmas set dostat='A' where donum='PFP13486';
PFP13489 update tbdofaxmas set dostat='A' where donum='PFP13489';
PFP13490 update tbdofaxmas set dostat='A' where donum='PFP13490';
PFP13491 update tbdofaxmas set dostat='A' where donum='PFP13491';
PFP13492 update tbdofaxmas set dostat='A' where donum='PFP13492';
PFP13493 update tbdofaxmas set dostat='A' where donum='PFP13493';
PFP13494 update tbdofaxmas set dostat='A' where donum='PFP13494';
PFP13495 update tbdofaxmas set dostat='A' where donum='PFP13495';
PFP13507 update tbdofaxmas set dostat='A' where donum='PFP13507';
PFP13515 update tbdofaxmas set dostat='A' where donum='PFP13515';
PFP13517 update tbdofaxmas set dostat='A' where donum='PFP13517';
PFP13518 update tbdofaxmas set dostat='A' where donum='PFP13518';
PFP13526 update tbdofaxmas set dostat='A' where donum='PFP13526';
PFP13527 update tbdofaxmas set dostat='A' where donum='PFP13527';
PFP13528 update tbdofaxmas set dostat='A' where donum='PFP13528';
PFP13529 update tbdofaxmas set dostat='A' where donum='PFP13529';
PFP13530 update tbdofaxmas set dostat='A' where donum='PFP13530';
PFP13577 update tbdofaxmas set dostat='A' where donum='PFP13577';
Back

You might also like