Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Percent Complete

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
US
I'm trying to calculate percentage complete between 2 dates in oracle. Shown below is how I did it in excel.

Code:
A3           B3         C3               Pct
4/13/2010   6/3/2011   7/23/2010        24%

=DATEDIF(A3,C3,"D")/DATEDIF(A3,B3,"D")

Thanks,
Sherry
 
Assuming that you have a3, b3, and c3 as columns with datatype DATE in a table called my_table,

SELECT (b3-a3)/(c3-a3)*100 FROM my_table;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top