MySQL Tutorial

SQL GROUP BY and HAVING Tutorial: COUNT, SUM, AVG, ROLLUP and Pivot Reports in MySQL

Submitted by jaypabs on

Totals, averages and counts are the heart of almost every report: sales per branch, students per course, orders per day, the best-selling product this week. In SQL, all of these come from one clause: GROUP BY. Paired with aggregate functions like COUNT, SUM and AVG, and filtered with HAVING, it turns thousands of rows into a short summary you can show on a dashboard.

Convert MySQL Table Data to XML Using PHP: A Step-by-Step Guide to Export Database Records

Submitted by oretnom23 on

This tutorial will guide you through the systematic procedure of Exporting MySQL Database Table Records to a XML File using the PHP language. Geared towards students and PHP beginners, this guide serves as a valuable reference, offering insights to bolster their understanding and programming skills. I will present a straightforward web application that illustrates the primary objective outlined in this article.