Advertisement
psi_mmobile

Untitled

Oct 14th, 2020
2,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 3.14 KB | None | 0 0
  1. DELETE FROM gu_person
  2. WHERE person_id IN (SELECT person_id FROM person WHERE vo_person_category_id = 101336);
  3.  
  4. DELETE FROM gu_vehicle
  5. WHERE vehicle_id IN (SELECT vehicle_id FROM vehicle WHERE vo_vehicle_category_id IN (103107,103108,103109));
  6.  
  7. DELETE FROM gu_vehicle_owner
  8. WHERE vo_person_category_id = 106628
  9. OR vo_vehicle_category_id IN (103107,103108,103109);
  10.  
  11. UPDATE person
  12. SET vehicle_owner_id = 101407
  13. WHERE vo_person_category_id = 101336;
  14.  
  15. UPDATE vo_person_category
  16. SET vehicle_owner_id = 101407
  17. WHERE vo_person_category_id = 106628;
  18.  
  19. UPDATE vehicle
  20. SET vehicle_owner_id = 101407
  21. WHERE vo_vehicle_category_id IN (103107,103108,103109);
  22.  
  23. UPDATE vo_vehicle_category
  24. SET vehicle_owner_id = 101407
  25. WHERE vo_vehicle_category_id IN (103107,103108,103109);
  26.  
  27.  
  28. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (224995,115472, SYSDATE, SYSDATE);
  29. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (224996,115472, SYSDATE, SYSDATE);
  30. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (224997,115472, SYSDATE, SYSDATE);
  31. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (224998,115472, SYSDATE, SYSDATE);
  32. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225002,115472, SYSDATE, SYSDATE);
  33. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225003,115472, SYSDATE, SYSDATE);
  34. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225005,115472, SYSDATE, SYSDATE);
  35. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225006,115472, SYSDATE, SYSDATE);
  36. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225034,115472, SYSDATE, SYSDATE);
  37. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225035,115472, SYSDATE, SYSDATE);
  38. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225036,115472, SYSDATE, SYSDATE);
  39. INSERT INTO GU_PERSON (PERSON_ID, GUI_USER_ID, CREATION_DATE, LM_DATE) VALUES (225037,115472, SYSDATE, SYSDATE);
  40.  
  41.  
  42. INSERT INTO GU_VEHICLE VALUES (115472,123296, NULL);
  43. INSERT INTO GU_VEHICLE VALUES (115472,120617, NULL);
  44. INSERT INTO GU_VEHICLE VALUES (115472,121459, NULL);
  45. INSERT INTO GU_VEHICLE VALUES (115472,169503, NULL);
  46. INSERT INTO GU_VEHICLE VALUES (115472,169506, NULL);
  47. INSERT INTO GU_VEHICLE VALUES (115472,169507, NULL);
  48. INSERT INTO GU_VEHICLE VALUES (115472,169505, NULL);
  49.  
  50. INSERT INTO GU_VEHICLE_OWNER (GUI_USER_ID, VEHICLE_OWNER_ID, GU_VEHICLE_OWNER_ID,VO_VEHICLE_CATEGORY_ID) VALUES (115472,101407,SEQ_GU_VEHICLE_OWNER_ID.NEXTVAL,103109);
  51. INSERT INTO GU_VEHICLE_OWNER (GUI_USER_ID, VEHICLE_OWNER_ID, GU_VEHICLE_OWNER_ID,VO_VEHICLE_CATEGORY_ID) VALUES (115472,101407,SEQ_GU_VEHICLE_OWNER_ID.NEXTVAL,103108);
  52. INSERT INTO GU_VEHICLE_OWNER (GUI_USER_ID, VEHICLE_OWNER_ID, GU_VEHICLE_OWNER_ID,VO_VEHICLE_CATEGORY_ID) VALUES (115472,101407,SEQ_GU_VEHICLE_OWNER_ID.NEXTVAL,103107);
  53. INSERT INTO GU_VEHICLE_OWNER (GUI_USER_ID, VEHICLE_OWNER_ID, GU_VEHICLE_OWNER_ID,VO_PERSON_CATEGORY_ID) VALUES (115472,101407,SEQ_GU_VEHICLE_OWNER_ID.NEXTVAL,106628);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement