June 2010
Intermediate to advanced
328 pages
7h 51m
English
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
“How do I count the number of rows by date?” This is an example of a simple task for a database programmer. This solution is covered in any introductory tutorial on SQL. It involves basic SQL syntax:
| EAV/intro/count.sql | |
| | SELECT date_reported, COUNT(*) |
| | FROM Bugs |
| | GROUP BY date_reported; |
However, the simple solution assumes two things:
Values are stored in the same column, as in Bugs.date_reported.
Values can be compared to one another so that GROUP BY can accurately group dates with equal values together.
What if you can’t rely on those assumptions? What if the date ...
Read now
Unlock full access