Advertisement
abdurahman_argoebie

QUERY CANCEL SO

Aug 26th, 2024
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.11 KB | Source Code | 0 0
  1. /* Query untuk mendapatkan id so dan update status so ke 4 (cancel)
  2.  * */
  3. select * from so where code = 'HI.DS.2408.01632';
  4. /* ============================================== */
  5. /* Query untuk update kolom status menjadi 0 (not pickup)*/
  6. select * from so_detail_sn sds where so_id = 11198;
  7. /*========================================================== */
  8. /* Query untuk update kolom is_use ke 0 (tidak digunakan) */
  9. select * from model_sn ms where serial_number in (
  10. '111008100202313210000282',
  11. '111008100202313210000283',
  12. '111007800201110110000373'
  13. );
  14. /* ======================================================= */
  15. /*Query untuk mendapatkan unit_id yang didapatkan dari id tabel model_sn untuk dihapus historynya
  16.  * yang berupa note: first assigned serial number dan scan by
  17.  * */
  18. select * from unit_sn_history_wms ushw where unit_id = 74137;
  19. /* ========================================================== */
  20. /* Query untuk update kolom actual_start_date dan actual_end_date menjadi null*/
  21. select * from driver_schedule ds where code = 'HI.DS.2408.01632';
  22. /*===============================================================*/
Tags: cancel SO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement