Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. ------------------- Get the itso_shell_account_sk (long card number) -------------------
  2.  
  3. select * from HOPS.ITSO_SHELL_ACCOUNT where isrn='633597011600255701';
  4.  
  5. 194097
  6.  
  7. ------------------ Check which location product going to currently. FLAG_LSTPROC_COMPLETE shows whether it has already been sent -----
  8.  
  9. select flag_lstproc_complete, send_to from cut.cut_al_request where itso_shell_Account_sk=161391;
  10. select * from cut.cut_al_request where itso_shell_Account_sk=161391;
  11.  
  12. -- if more than on result, instead select result that matches details given from:
  13.  
  14. select * from cut.cut_al_request where itso_shell_Account_sk=161391 order by 1 desc;
  15.  
  16. ------------------ find PUBLIC_SET_SK from list of locations, change wildcard as appropriate -------------------------
  17.  
  18. select * from AMS.public_set where DESCRIPTION like '%SHEPPERTON%'
  19.  
  20. 122
  21.  
  22. ----------------- get the CUT_AL_REQUEST_SK value to find the appropriate actionlist -----------------------
  23.  
  24. select * from cut.cut_al_request where itso_shell_Account_sk=161391;
  25.  
  26. 302598
  27.  
  28. ----------------- input the new location and the CUT_AL_REQUEST_SK to update AL and resend ------------------------
  29.  
  30. update cut.cut_al_request set flag_lstproc_complete='N', send_to=25 where cut_al_request_sk=343588;
  31.  
  32. commit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement