Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Sort NULLs Last

Return all tasks ordered by due_date ascending, with tasks that have no due date at the end. Return id and title.

Table schema

Tasks(id INT PRIMARY KEY, title VARCHAR(50), due_date DATE NULL)

Sample data

id | title | due_date
1 | A | 2026-03-01
2 | B | NULL
3 | C | 2026-02-01

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.