
Learn SQL with me. Made by @csaba_kissi
Joined November 2023
- Tweets363
- Following8
- Followers367
- Likes1.1K
Replying to @sevalla_hosting
This sample code shows how to restore the MYSQL backup from the zipped file:
1
3
29
Replying to @sevalla_hosting
Here is one incredible sample query on how to search in the MYSQL JSON field.
Assuming you have a table called users with a JSON column named profile, and you want to find all users where the age field inside the JSON object is equal to 30:
1
3
37
Replying to @sevalla_hosting
Here is the version with a subquery. I like the version that uses "WITH" more.
2
2
49
8️⃣ Aggregate Functions with Joins:
You can apply aggregate functions across joined tables.
Example: finding the total salary expenditure per department:
1
29












