What is the purpose of the Oracle RANK() function?
A. Calculate the average value
B. Assign a rank to each row within a result set
C. Concatenate multiple rows
D. Find the length of a string
'RANK()' is used to assign a rank to each row within a result set in Oracle.