Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.75 KB | None | 0 0
  1. SELECT
  2.     XMLELEMENT("Item",
  3.       XMLELEMENT("ItemName",ic.item_name),
  4.       XMLELEMENT("ItemFacilityWMSList",
  5.         XMLELEMENT("ItemFacilityWMS",
  6.           XMLELEMENT("FacilityName",'DTC'),
  7.           XMLELEMENT("ExtendedAttributes", XMLAttributes('slotting' AS "Module"),
  8.             XMLELEMENT("SlotItemStatus", t.status),
  9.             XMLELEMENT("SlotStatusDate", t.statusdate)
  10.             )
  11.           )
  12.         )
  13.       ) AS xml_tags,
  14.     t.*, ifs.*
  15. FROM  item_cbo ic,
  16.       item_facility_slotting ifs,
  17.       ( SELECT 'N' status, '06/09/2019' statusdate FROM dual
  18.         UNION
  19.         SELECT 'D', '12/09/2019' FROM dual  ) t
  20. WHERE ifs.item_id = ic.item_id
  21.   AND ic.volume_uom_id IS NOT NULL
  22.   AND ic.item_id > 5000
  23. ORDER BY ic.item_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement