Codex Interview Question

SQL questions where a little bit difficult but not something unique