I know how to find Median with just using row_number, but have no idea how to find it only using sum, count
Asked
Active
Viewed 94 times
0
-
[How do I get min, median and max from my query in PostgreSQL?](https://stackoverflow.com/q/12067656/1995738) – klin May 27 '22 at 18:19
-
@klin I cannot use percentile. – Ruslan Pylypyuk May 27 '22 at 18:26
-
You do not have to. Find the code of the `median()` function in the linked answers. – klin May 27 '22 at 20:21