DBLab bundles SQLite 3.54.1 in WebAssembly, giving students full support for modern SQL window functions with zero server setup.
{"schema":"dblab-v1","dataset":"skola","customSchemaSql":"","starterSql":"SELECT o.naziv AS odeljenje, u.ime, u.prezime, u.prosek,\n RANK() OVER (PARTITION BY u.odeljenje_id ORDER BY u.prosek DESC) AS rang\nFROM ucenici u\nJOIN odeljenja o ON o.id = u.odeljenje_id\nORDER BY o.naziv, rang;","mode":"sandbox","ui":{"showSchemaTree":true,"showErDiagram":true,"allowStepper":true,"maxRows":500}}Try this
- Run the query to rank students inside each class independently.
- Replace
RANK() with DENSE_RANK() or ROW_NUMBER().
Last modified: Wednesday, 2 December 2026, 8:23 PM