INTRODUCTION
Shortly after joining the staff of
USA TODAY I received a data set I would
analyze almost every week for the next decade. It was the weekly Best-Selling
Books list, which ranked the nation’s top-selling books based on confidential
sales data. The list not only produced an endless
stream of story ideas to
pitch, but it also captured the zeitgeist of America in a singular way.
For example, did you know that cookbooks sell a bit more during the
week of Mother’s Day, or that Oprah Winfrey turned many obscure writers
into number one best-selling authors just by having them on her show?
Week after week, the book list editor and I pored over the sales figures and
book genres, ranking the data in search of the next headline. Rarely did we
come up empty: we chronicled everything
from the rocket-rise of the
blockbuster
Harry Potter series to the fact that
Oh, the Places You’ll Go! by Dr.
Seuss has become a perennial gift for new graduates.
My technical companion during this time was the database programming
language
SQL (for
Structured Query Language). Early on, I convinced
USA
TODAY’s IT department to grant me access
to the SQL-based database
system that powered our book list application. Using SQL, I was able to
unlock the stories hidden in the database, which contained titles, authors,
genres, and various codes that defined the publishing world. Analyzing data
with SQL to discover interesting stories is exactly what you’ll
learn to do
using this book.
Chia sẻ với bạn bè của bạn: