Skip to main content
HomeSQL

Exploratory Data Analysis in SQL

4.4+
64 reviews
Intermediate

Learn how to explore what's available in a database: the tables, relationships between them, and data stored in them.

Start Course for Free
4 hours16 videos57 exercises129,723 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

You have access to a database. Now what do you do? Building on your existing skills joining tables, using basic functions, grouping data, and using subqueries, the next step in your SQL journey is learning how to explore a database and the data in it. Using data from Stack Overflow, Fortune 500 companies, and 311 help requests from Evanston, IL, you'll get familiar with numeric, character, and date/time data types. You'll use functions to aggregate, summarize, and analyze data without leaving the database. Errors and inconsistencies in the data won't stop you! You'll learn common problems to look for and strategies to clean up messy data. By the end of this course, you'll be ready to start exploring your own PostgreSQL databases and analyzing the data in them.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Certification Available

Associate Data Analyst in SQL

Go To Track

SQL for Business Analysts

Go To Track
  1. 1

    What's in the Database?

    Free

    Start exploring a database by identifying the tables and the foreign keys that link them. Look for missing values, count the number of observations, and join tables to understand how they're related. Learn about coalescing and casting data along the way.

    Play Chapter Now
    What's in the database?
    50 xp
    Explore table sizes
    50 xp
    Count missing values
    100 xp
    Join tables
    100 xp
    The keys to the database
    50 xp
    Foreign keys
    50 xp
    Read an entity relationship diagram
    100 xp
    Coalesce
    100 xp
    Column types and constraints
    50 xp
    Effects of casting
    100 xp
    Summarize the distribution of numeric values
    100 xp
  2. 2

    Summarizing and Aggregating Numeric Data

    You'll build on functions like min and max to summarize numeric data in new ways. Add average, variance, correlation, and percentile functions to your toolkit, and learn how to truncate and round numeric values too. Build complex queries and save your results by creating temporary tables.

    Play Chapter Now
  3. 3

    Exploring Categorical Data and Unstructured Text

    Text, or character, data can get messy, but you'll learn how to deal with inconsistencies in case, spacing, and delimiters. Learn how to use a temporary table to recode messy categorical data to standardized values you can count and aggregate. Extract new variables from unstructured text as you explore help requests submitted to the city of Evanston, IL.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Certification Available

Associate Data Analyst in SQL

Go To Track

SQL for Business Analysts

Go To Track

datasets

Stack Overflow Question CountsFortune 500 CompaniesEvanston 311 Help RequestsCourse Database Creation CodeCourse Database Entity Relationship Diagram

collaborators

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Mona Khalil
Collaborator's avatar
Adrián Soto
Christina Maimone HeadshotChristina Maimone

Data Scientist, Northwestern University

Christina Maimone leads Research Data Services at Northwestern University with the IT Research Computing Services group. She enables innovative research by providing data science, programming, and software development support for researchers. Through consultations, project collaborations, user groups, and workshops, the Research Data Services team ensures researchers have the resources, services, and skills they need to overcome challenges in their work. Christina regularly uses R, Python, and SQL but enjoys the challenge of using a wide range of programs and languages in her work. She has a PhD in political science and an MS in statistics from Stanford.
See More

Don’t just take our word for it

*4.4
from 64 reviews
66%
22%
8%
3%
2%
Sort by
  • Charbel B.
    about 1 month

    Good comprehensive introduction to SQL

  • Alex M.
    about 1 month

    Amazing course

  • Marek W.
    about 1 month

    Very interesting but last tasks was to hard.

  • James K.
    3 months

    Excellent course

  • Roman G.
    3 months

    Excellent! Thanks a lot!

"Good comprehensive introduction to SQL"

Charbel B.

"Amazing course"

Alex M.

"Very interesting but last tasks was to hard."

Marek W.

FAQs

Join over 15 million learners and start Exploratory Data Analysis in SQL today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.