Thursday, 12 November 2020

Oracle Fusion : Inventory Item Manufacturer Name & Manufacturer Part Number SQL Query

Important Note: It is possible that Inventory Item has multiple Manufacturer and Part Number, With respect to your business need you can fetch any No. of Manufacturer details from below query using rec_order value.



select 

(SELECT manufacturer_name

          FROM (  SELECT hp.party_name manufacturer_name,

                         a.tp_item_number manfr_part_num,

                         a.tp_item_desc description,

                         eirb.inventory_item_id,

                         eirb.creation_date,

                         ROWNUM rec_order

                    FROM egp_trading_partner_items a,

                         hz_parties hp,

                         egp_item_relationships_b eirb

                   WHERE     a.tp_type = 'MANUFACTURER'

                         AND hp.party_id = a.trading_partner_id

                         AND a.tp_item_id = eirb.tp_item_id

                         AND eirb.item_relationship_type = 'MFG_PART_NUM'

                         AND eirb.inventory_item_id = esib.inventory_item_id ---300000001940364

                ORDER BY eirb.creation_date ASC)

         WHERE rec_order = 1)

          MANUFACTURER_NAME,

       (SELECT manfr_part_num

          FROM (  SELECT hp.party_name manufacturer_name,

                         a.tp_item_number manfr_part_num,

                         a.tp_item_desc description,

                         eirb.inventory_item_id,

                         eirb.creation_date,

                         ROWNUM rec_order

                    FROM egp_trading_partner_items a,

                         hz_parties hp,

                         egp_item_relationships_b eirb

                   WHERE     a.tp_type = 'MANUFACTURER'

                         AND hp.party_id = a.trading_partner_id

                         AND a.tp_item_id = eirb.tp_item_id

                         AND eirb.item_relationship_type = 'MFG_PART_NUM'

                         AND eirb.inventory_item_id = esib.inventory_item_id ---300000001940364

                ORDER BY eirb.creation_date ASC)

         WHERE rec_order = 1)

          MANUFACTURER_PART_NUM

from FROM egp_system_items_b esib

  

16 comments:

  1. Nice, thanks for sharing useful information.

    ReplyDelete
  2. "This query is super helpful for those managing complex inventory systems. Thanks for sharing!"
    Office Furniture Manufacturer Gurgaon
    Industrial Storage Racks Manufacturer

    ReplyDelete
  3. "Great explanation! Fetching manufacturer details by rec_order adds a lot of flexibility."
    Warehouse Racking system
    cafeteria-furniture Gurgaon

    ReplyDelete
  4. "I appreciate how you've used the rec_order value. This can be a game-changer for businesses with multiple suppliers!"
    Staff locker in noida
    Cantilever Pallet Rack in Delhi

    ReplyDelete
  5. "Thanks for this! Really helped me understand how to manage multiple manufacturer data."
    Dust Collector for Furniture
    rack supported mezzanine floor

    ReplyDelete
  6. "Interesting approach! This query makes managing manufacturer and part numbers more efficient."
    industrial mezzanine floor in hyderabad
    Tunnel Ventilation system

    ReplyDelete
  7. "This query looks like a lifesaver for anyone dealing with complex inventory data. Well done!"
    Industrial Exhaust Fans
    modular mezzanine floor in delhi

    ReplyDelete
  8. "Thanks for sharing this solution! Just what I needed for my inventory management project."
    warehouse mezzanine floor in hyderabad
    Portable Dust Collector

    ReplyDelete
  9. "This makes inventory tracking a lot more manageable. Appreciate the detailed breakdown."
    Wood Dust Collector
    perforated cable tray In delhi

    ReplyDelete
  10. "A concise solution for pulling manufacturer details. Simple yet effective."
    Cable tray in delhi
    Wood Dust Collector

    ReplyDelete
  11. "This will definitely help streamline inventory reporting. Thanks for sharing!"
    Industrial Dust Collector
    multi tier rack

    ReplyDelete
  12. "Impressive approach to fetching manufacturer details! This query will save me a lot of time."
    iron angle rack
    Paint Booth

    ReplyDelete
  13. "It’s amazing how well this query handles multiple manufacturers for a single item."
    Cyclone Dust Collector
    File compactor storage system

    ReplyDelete
  14. "I was struggling with this issue—this query is a real breakthrough!"
    heavy duty slotted angle rack
    Burger Franchise

    ReplyDelete