Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless.
Chapter 15Ambiguous Groups
Suppose your boss needs to know which projects in the bugs database are still active and which projects have been abandoned. One report he asks you to generate is the latest bug reported per product. You write a query using the MySQL database to calculate the greatest value in the date_reported column per group of bugs sharing a given product_id. The report looks like this:
product_name | latest | bug_id |
|---|---|---|
Open RoundFile | 2010-06-01 | 1234 |
Visual TurboBuilder | 2010-02-16 | 3456 |
ReConsider | 2010-01-01 | 5678 |
Your boss is a detail-oriented person, and he spends some time ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access