Interactive Course

Intro to SQL for Data Science

Master the basics of querying databases with SQL, the world's most popular databasing language.

  • 4 hours
  • 1 Videos
  • 41 Exercises
  • 206,569 Participants
  • 3,450 XP

Course Description

The role of a data scientist is to turn raw data into actionable insights. Much of the world's raw data—from electronic medical records to customer transaction histories—lives in organized collections of tables called relational databases. Therefore, to be an effective data scientist, you must know how to wrangle and extract data from these databases using a language called SQL (pronounced ess-que-ell, or sequel). This course teaches you everything you need to know to begin working with databases today!

Master the basics of querying databases with SQL, the world's most popular databasing language.

Course Outline

  1. 1

    Selecting columns

    This chapter provides a brief introduction to working with relational databases. You'll learn about their structure, how to talk about them using database lingo, and how to begin an analysis by using simple SQL commands to select and summarize columns from database tables.

  2. 3

    Aggregate Functions

    This chapter builds on the first two by teaching you how to use aggregate functions to summarize your data and gain useful insights. Additionally, you'll learn about arithmetic in SQL, and how to use aliases to make your results more readable!

  1. 1

    Selecting columns

    This chapter provides a brief introduction to working with relational databases. You'll learn about their structure, how to talk about them using database lingo, and how to begin an analysis by using simple SQL commands to select and summarize columns from database tables.

  2. 2

    Filtering rows

    This chapter builds on the first by teaching you how to filter tables for rows satisfying some criteria of interest. You'll learn how to use basic comparison operators, combine multiple criteria, match patterns in text, and much more.

  3. 3

    Aggregate Functions

    This chapter builds on the first two by teaching you how to use aggregate functions to summarize your data and gain useful insights. Additionally, you'll learn about arithmetic in SQL, and how to use aliases to make your results more readable!

  4. 4

    Sorting, grouping and joins

    This chapter provides a brief introduction to sorting and grouping your results, and briefly touches on the concept of joins.

Nick Carchedi
Nick Carchedi

Product Manager at DataCamp

Nick is a Product Manager at DataCamp, responsible for the learning and teaching experience. Prior to joining DataCamp, he earned his master's degree at Johns Hopkins Biostatistics and worked as a data scientist for McKinsey. Nick's passion for teaching data science began in graduate school, where he was heavily involved in tutoring fellow students, developing the Johns Hopkins Data Science Specialization, and building the swirl R package.

See More
Collaborators
  • Colin Ricardo

    Colin Ricardo

  • Filip Schouwenaars

    Filip Schouwenaars

Course Instructor

Nick Carchedi
Nick Carchedi

Product Manager at DataCamp

Nick is a Product Manager at DataCamp, responsible for the learning and teaching experience. Prior to joining DataCamp, he earned his master's degree at Johns Hopkins Biostatistics and worked as a data scientist for McKinsey. Nick's passion for teaching data science began in graduate school, where he was heavily involved in tutoring fellow students, developing the Johns Hopkins Data Science Specialization, and building the swirl R package.

See More
Collaborator(s)
  • Colin Ricardo

    Colin Ricardo

  • Filip Schouwenaars

    Filip Schouwenaars

Join over 3,300,000 others learning to leverage the power of data with DataCamp!

Start Course For Free
Icon Icon Icon professional Icon info