Provides the ratio of the current rows value to all the values within the window.
--DataCREATETABLE Employees (Name Varchar2(30), Salary Number(10));INSERTINTO Employees Values('Bob',2500);INSERTINTO Employees Values('Alice',3500);INSERTINTO Employees Values('Tom',2700);INSERTINTO Employees Values('Sue',2000);--QuerySELECT Name, Salary, Ratio_To_Report(Salary)OVER()As Ratio
FROM Employees
ORDERBY Salary, Name, Ratio;--Output
NAME SALARY RATIO
------------------------------ ---------- ----------
Sue 2000.186915888
Bob 2500.23364486
Tom 2700.252336449
Alice 3500.327102804
Syntax
Ratio_To_Report ( expr ) OVER ( query_partition_clause )