MySQL Shorts is back after a short hiatus, and we’re excited to share what we’ve been working on! For this installment of our advent calendar of content, we’re taking a look at the series’ refreshed style and catching up on eight recent episodes.
We’ve updated the look and tightened up the opening and closing bumpers to get you into the demo faster. Going forward, we’re focusing on videos of no more than two minutes, each covering a single piece of functionality or a specific problem. The goal is simple: give you something useful you can learn quickly and put to work.
Episode 102: MySQL JSON Duality Views—Manage Relational Data as JSON
Work with relational data as JSON while preserving the relationships between your tables. This episode demonstrates how a JSON Duality View lets you retrieve, insert, update, and delete orders and their associated items through a single view.
Episode 103: MySQL COALESCE Function: Handle NULL Values in SQL Queries
Need to choose the first available value from several columns? This episode shows how COALESCE() returns the first non-NULL value, using player substitutions to demonstrate how argument order affects results and how the function can help select the right record in a join.
Episode 104: MySQL FIELD() Function for Custom Sorting
Should a coffee emergency really take priority over a house on fire? Learn how to combine FIELD() with ORDER BY to sort support tickets by your chosen priorities instead of the order defined by an ENUM.
Episode 105: MySQL Null-Safe Equality Operator for Accurate Filtering
Comparing two NULL values with = produces an unknown result, which can leave expected records out of your query results. This episode introduces MySQL’s null-safe equality operator, <=>, and shows how one filter can handle both tickets assigned to a specific agent and unassigned tickets.
Episode 106: MySQL LAG() Window Function for Comparing Sales Data
Compare each sales total with the previous row without writing a separate query for each comparison. This episode demonstrates how LAG() uses the order defined in its OVER clause to retrieve a preceding value and calculate the change between consecutive sales totals.
Episode 107: MySQL Transactions: Maintain Data Consistency
When an order requires several inventory updates, those changes need to succeed together. This episode demonstrates START TRANSACTION and ROLLBACK, including why a failed statement does not necessarily undo earlier changes in the transaction automatically.
Episode 108: MySQL LIKE With Custom Escape Characters
Searching for an actual underscore or percent sign can get tricky when LIKE treats those characters as wildcards. Learn how the ESCAPE clause lets you choose a custom escape character and match the literal characters you intended.
Episode 109: Automatically Refresh Query Results With MySQL Shell \watch
Stop manually rerunning the same query while monitoring changing data. This episode shows how MySQL Shell’s \watch command refreshes query results at a configurable interval, with options to retain previous output or display wide results vertically.
Ready for more bite-sized MySQL tips? Check out all the videos in the MySQL Shorts playlist, and find your next two-minute learning break!
