
It is useful to get current week records or fetch this week records in MySQL. Here is how to get current week data in MySQL.
It is useful to get current week records or fetch this week records in MySQL. Here is how to get current week data in MySQL.
Sometimes you may need to select top n records for each category. Here is how to select top 10 records for each category in MySQL.
Common Table Expressions allow you to easily write complex SQL queries in MySQL. Here is how to create common table expressions in MySQL.
Learn how to calculate margin in MySQL using SQL queries. Use it to calculate total profit, product profit and daily profit in MySQL.
It is important to get top selling products for every ecommerce business. Here is the MySQL query to get top selling products.
It is easy to get multiple counts with multiple conditions in MySQL. Here is how to get multiple counts with different criteria in MySQL.
Case statements help you use multiple if conditions in SQL queries. Here is how to write case statement in MySQL.
Sometimes you may need to check if value exists in array. Here is how to check if PostgreSQL array contains value.
Coalesce is a useful MySQL function that returns first non-null value. Here is how to use Coalesce in MySQL.
Sometimes you may need to search JSON array of objects, extract JSON data or retrieve JSON data in MySQL. In this article, we will look at how to query JSON column in MySQL.