Home » SQL & PL/SQL » SQL & PL/SQL » Extract buyer's name from requisition
Extract buyer's name from requisition [message #13894] Sun, 01 August 2004 16:44 Go to next message
Nur Lailin
Messages: 3
Registered: August 2004
Junior Member
Hi all,

I am in the midst of creating a report that extracts information from both po and requisition tables. I have managed to do this but in addition I will also need to display the name of the buyer who created the requisition.

In the po_requisition_headers_all, there is a field called created_by but it contain ID numbers instead of the actual names. There's also a field called agent_id which is linked to po_agents, yet again that's only an ID. Where are these tables linked to in order to extract the full name? So far I've only come across the hr_employee view which keeps the full name of employees.

For your info, I'm using Oracle 8i.

Please help!
Re: Extract buyer's name from requisition [message #13907 is a reply to message #13894] Mon, 02 August 2004 03:57 Go to previous messageGo to next message
Art Metzer
Messages: 2480
Registered: December 2002
Senior Member
Look at the applsys.fnd_user table. You'll join on user_id to get user_name. Depending on your setup, you may also be able to join from that table's employee_id to hr.per_all_people_f.person_id.

Hope this helps,

Art.
Re: Extract buyer's name from requisition [message #13921 is a reply to message #13907] Mon, 02 August 2004 18:26 Go to previous message
Nur Lailin
Messages: 3
Registered: August 2004
Junior Member
Hi Art,

Thanks for your reply. I've actually managed to resolved it already and yes, it's exactly like what you suggested :) I linked it to fnd_user table and displayed the username.
Previous Topic: views
Next Topic: SQL BLOB datatype
Goto Forum:
  


Current Time: Mon Aug 18 07:44:08 CDT 2025