MariaDB playground

select
  dense_rank() over w as rnk,
  first_name, department.name as dep_name,
  salary
from employee
  join department using(dep_id)
window w as (order by salary desc)
order by rnk, emp_id;

MariaDB is an open source relational database system, made by the original developers of MySQL.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

MariaDB version:    11.2
sandbox engine:     codapi
sandbox name:       mariadb
allowed commands:   run
in-browser:         ✘

Usage example:

<pre><code>...</code></pre>
<codapi-snippet sandbox="mariadb" editor="basic"></codapi-snippet>

Documentation