I am trying to find 5th highest salary in bigquery using this query but it gives me error
LEFT OUTER JOIN cannot be used without a condition that is an equality of fields from both sides of the join.
I believe this is the right query for sql for this question but something is not working out in bigquery. Can anybody help me with this? :)
select concat(first_name, ' ', last_name) as Name, salary
from `table` w1
where 4 = (select count(distinct(salary))
from `table` w2
where w2.salary > w1.salary)