RienSQL
TASK #145 · Medium

Composite index with sorting

Your brief
Create index idx_lesson_date_classroom_desc on the Lessons table, including the lesson_date (ascending) and classroom (descending) columns.
Expected columnsSchedule
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Lessonsid, subject, teacher_name, lesson_date, classroom
Timepairid, start_time, end_time