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
Nice..
ReplyDeleteThanks :)
DeleteNice, thanks for sharing useful information.
ReplyDelete"This query is super helpful for those managing complex inventory systems. Thanks for sharing!"
ReplyDeleteOffice Furniture Manufacturer Gurgaon
Industrial Storage Racks Manufacturer
"Great explanation! Fetching manufacturer details by rec_order adds a lot of flexibility."
ReplyDeleteWarehouse Racking system
cafeteria-furniture Gurgaon
"I appreciate how you've used the rec_order value. This can be a game-changer for businesses with multiple suppliers!"
ReplyDeleteStaff locker in noida
Cantilever Pallet Rack in Delhi
"Thanks for this! Really helped me understand how to manage multiple manufacturer data."
ReplyDeleteDust Collector for Furniture
rack supported mezzanine floor
"Interesting approach! This query makes managing manufacturer and part numbers more efficient."
ReplyDeleteindustrial mezzanine floor in hyderabad
Tunnel Ventilation system
"This query looks like a lifesaver for anyone dealing with complex inventory data. Well done!"
ReplyDeleteIndustrial Exhaust Fans
modular mezzanine floor in delhi
"Thanks for sharing this solution! Just what I needed for my inventory management project."
ReplyDeletewarehouse mezzanine floor in hyderabad
Portable Dust Collector
"This makes inventory tracking a lot more manageable. Appreciate the detailed breakdown."
ReplyDeleteWood Dust Collector
perforated cable tray In delhi
"A concise solution for pulling manufacturer details. Simple yet effective."
ReplyDeleteCable tray in delhi
Wood Dust Collector
"This will definitely help streamline inventory reporting. Thanks for sharing!"
ReplyDeleteIndustrial Dust Collector
multi tier rack
"Impressive approach to fetching manufacturer details! This query will save me a lot of time."
ReplyDeleteiron angle rack
Paint Booth
"It’s amazing how well this query handles multiple manufacturers for a single item."
ReplyDeleteCyclone Dust Collector
File compactor storage system
"I was struggling with this issue—this query is a real breakthrough!"
ReplyDeleteheavy duty slotted angle rack
Burger Franchise