Sort NULLs Last
Easy
NULL Handling
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.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.