SQLite for Beginners: ORDER BY, ASC, DESC & Multi-Column Sorting | Episode 7

1views
00
10:22
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Results come back in random order? Not anymore! ORDER BY lets you sort by any column — ascending, descending, or multiple columns at once. We continue with our music library and sort songs by year, duration, artist, and even combine WHERE with ORDER BY for filtered, sorted results. Student code: https://github.com/GoCelesteAI/learn-sqlite-in-neovim/tree/main/episode07 Every keystroke is shown on screen with 3-second pauses so you can follow along at your own pace. What You'll Learn: - ORDER BY to sort results by any column - ASC (ascending) — default, smallest to largest - DESC (descending) — largest to smallest - Sorting text alphabetically (A to Z) - Multiple column sorting with tie-breaking - Combining WHERE and ORDER BY - Running SQL files with :!sqlite3 :memory Timestamps: 0:00 - Introduction 0:12 - Preview: What We Cover 0:44 - Creating orderby.sql 1:50 - CREATE TABLE songs (same music library) 3:07 - INSERT — eight songs 5:05 - ORDER BY year — ascending (default) 5:41 - ORDER BY year DESC — descending 6:18 - ORDER BY duration DESC — longest first 6:55 - ORDER BY artist — alphabetical 7:32 - ORDER BY artist, year DESC — multi-column 8:09 - WHERE + ORDER BY — filter then sort 8:46 - Recap: 3 Key Takeaways 9:22 - End Screen Key Takeaways: 1. ORDER BY sorts results — default is ascending, add DESC for descending 2. Sort by multiple columns — first column is primary, second breaks ties 3. Combine WHERE and ORDER BY — filter first, then sort This is Episode 7 of the Learn SQLite in Neovim series — 32 episodes from beginner to advanced. Taught by CelesteAI. Like & subscribe for more tutorials! #sqlite #sql #neovim #programming #tutorial #beginners #learnsql #database #orderby #sorting #sqlitetutorial #coding Tags sqlite, sqlite tutorial, learn sqlite, sql tutorial, sql for beginners, neovim sqlite, order by sql, asc desc, sorting sql, multiple columns, neovim tutorial, learn sql in neovim, sql basics, sqlite episode 7, programming tutorial, coding tutorial, beginner programming, sqlite 2026, neovim 2026, screenkey, code along, database tutorial

Tags

sqlitesqlite tutoriallearn sqlitesql tutorialsql for beginnersneovim sqliteorder by sqlasc descsorting sqlmultiple columnsneovim tutoriallearn sql in neovimsql basicssqlite episode 7programming tutorial
Back to tutorials

Duration

10:22

Published

March 24, 2026

Added to Codegiz

March 26, 2026

Open in YouTube