DeveloperBreeze

Sql Programming Tutorials, Guides & Best Practices

Explore 14+ expertly crafted sql tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Tutorial

How to Disable MySQL Password Validation on Ubuntu 25.04

Then you'll need to restart MySQL:

sudo systemctl restart mysql

May 01, 2025
Read More
Tutorial

How to Move the MySQL Data Directory to a New Location on Ubuntu 25.04

Find the line:

datadir = /var/lib/mysql

May 01, 2025
Read More
Tutorial

How to Install PHP, MySQL, and phpMyAdmin on Ubuntu 25.04 (LAMP Stack Setup Guide)

Begin by updating your package index to ensure you have the latest information on available packages:

sudo apt update

May 01, 2025
Read More
Cheatsheet
mysql

MySQL Cheatsheet: Comprehensive Guide with Examples

No preview available for this content.

Aug 20, 2024
Read More
Tutorial
json mysql

Selecting the Sum of a JSON Property in MySQL

  • JSON_EXTRACT(order_details, '$.quantity'): Extracts the value of the quantity key from the JSON order_details column.
  • JSON_UNQUOTE(...): Removes any quotes from the extracted JSON value.
  • CAST(... AS UNSIGNED): Converts the extracted value to an unsigned integer to allow for summation.
  • SUM(...): Sums all the quantities across the rows.

When you run the above query, MySQL will return the total quantity of products ordered by all customers:

Aug 17, 2024
Read More