Previously I dumped data from Oracle to Excel to do percentiles. Today, I learned how to derive percentiles within Oracle. However, Oracle and Excel seem to be working opposite in the results.
[tt]
RESULT
470 EXCEL = PERCENTILE(N6:N899,0.25)
570 ORACLE = PERCENTILE_CONT(0.25) WITHIN GROUP (ORDER BY to_number(SAT_READ) DESC) "25Median cont",
570 EXCEL = PERCENTILE(N6:N899,0.75)
470 ORACLE = PERCENTILE_CONT(0.75) WITHIN GROUP (ORDER BY to_number(SAT_READ) DESC) "75Median cont"
[/tt]
Does this mean that if I want to show the 25th percentile from Oracle I should use 0.75 and for the 75th percentile I should use 0.25 or am I misunderstanding how things work.
[tt]
RESULT
470 EXCEL = PERCENTILE(N6:N899,0.25)
570 ORACLE = PERCENTILE_CONT(0.25) WITHIN GROUP (ORDER BY to_number(SAT_READ) DESC) "25Median cont",
570 EXCEL = PERCENTILE(N6:N899,0.75)
470 ORACLE = PERCENTILE_CONT(0.75) WITHIN GROUP (ORDER BY to_number(SAT_READ) DESC) "75Median cont"
[/tt]
Does this mean that if I want to show the 25th percentile from Oracle I should use 0.75 and for the 75th percentile I should use 0.25 or am I misunderstanding how things work.