Question

Quick Report SQL for Supplier Age Anlaysis

  • 14 September 2020
  • 1 reply
  • 134 views

Userlevel 2
Badge +4

Does someone have the SQL code required to create a Quick Report for Supplier Age Analysis ? 


1 reply

Userlevel 2
Badge +5

Hi Antonio,

 

not sure if I got you right, but do you mean something like this?

 

SELECT t.supplier_id,
t.name,
TRUNC((SELECT months_between(SYSDATE, t.creation_date)/12 FROM DUAL)) years_since_creation,
TRUNC((SELECT months_between(SYSDATE, t.creation_date) FROM DUAL)) months_since_creation,
TRUNC(SYSDATE-t.creation_date) days_since_creation
FROM SUPPLIER_INFO_GENERAL t

 

Reply