Lies, Damn Lies, Statistics, and SQL
When I read about the Developer Shed December Giveaway Contest in the most recent newsletter a thought occurred to me; given the nature of the Developer Shed Network of sites, there should be an...
View ArticleIntroduction to SQL
The SQL language and relational database systems based on it are one of the most important foundation technologies in the computer industry. Over the last two decades, SQL has grown from its first...
View ArticleDate Handling
Hacks 19-23 SQL is capable of handling just about any date calculation. The hacks in this chapter show how to get dates into your database, and how to get weekly, monthly, and quarterly reports out...
View ArticleSQL Date Handling and Data Trends
HACK 20 Uncover Trends in Your Data Statistics gathered daily could contain both daily cycles and weekly trends. This can lead to chaotic-looking graphs when activity is plotted day by day. You can...
View ArticleCreating SQL Reports Based on Date Criteria
HACK 21 Report on Any Date Criteria A report may depend on ranges of dates that can be tricky to calculate. Monthly totals are pretty straightforward; but how about current month, last month, and year...
View ArticleGenerating Reports with SQL Date Handling
HACK 22 Generate Quarterly Reports A quarterly report aggregates three months' worth of figures. SQL has all the functions you need to get this aggregation. Suppose you have figures that you need to...
View ArticleA Close Look at the SQL Query
In this chapter, we are going to take a close look at the SQL query and examine how its construct can vary according to the tactical demands of particular situations. This will involve examining...
View ArticleComplex SQL Queries
Complex queries and complex views Be aware that the apparent number of tables involved in a query can be deceptive; some of the tables may actually be views, and sometimes pretty complex ones, too....
View ArticleFocusing SQL Queries
More Batmobile purchases Let's explore alternative ways to list our buyers of Batmobiles. In my view, as a general rule, distinct at the top level should be avoided whenever possible. The reason is...
View Article
More Pages to Explore .....