| Doing More |
In the first part of this article, I introduced you to subqueries, one of the most powerful and useful new features in MySQL 4.1, and showed you how you can use them to filter SQL result sets. I demonstrated how subqueries can be used in both the WHERE and HAVING clause of outer SELECT queries, in combination with MySQL's other comparison and logical operators, with MySQL's aggregate functions and with the GROUP BY clause.
However, that's just the tip of the iceberg. In the concluding segment of this tutorial, I'm going to delve into the more advanced aspects of subqueries, showing you how to use them within a SELECT's query's FROM clause, with the IN operator and the EXISTS test, and in UPDATE and DELETE queries. Let's get going!
How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.
Read more, or grab your copy now!