Sql query for Leadtime

Purchasing & Inventory forum can be used to discuss all features/issues related to Oracle Purchasing & Inventory.
Post Reply
Frapacino
Posts: 14
Joined: Thu Jan 22, 2009 3:11 pm
Location: South Africa

Sql query for Leadtime

Post by Frapacino »

Hi
I am looking for a sql query to analyse the lead time between the promised date of the supplier and the actual date received by our requestor.

Regards
Frapacino
wenjie
Posts: 30
Joined: Mon Jul 07, 2008 5:42 am
Location: Indonesia

Post by wenjie »

the time of report show off, you can use this query from our moderator

SELECT fcp.description "Description",
TRUNC
(AVG ( ( TO_NUMBER (TO_CHAR (actual_completion_date, 'SSSSS'))
- TO_NUMBER (TO_CHAR (actual_start_date, 'SSSSS'))
)
/ 60
),
2
) "Time in Min."
FROM fnd_concurrent_programs_vl fcp, fnd_concurrent_requests fcr
WHERE fcp.application_id = fcr.program_application_id
AND fcp.concurrent_program_id = fcr.concurrent_program_id
AND TO_CHAR (actual_completion_date, 'DD-MON-YY') =
TO_CHAR (actual_start_date, 'DD-MON-YY')
GROUP BY fcp.description
ORDER BY fcp.description;
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests