SQL for Business

Databases are useful for both storing and using data effectively. Using a relational database serves several purposes.

This lesson will teach you what relational databases are, how you can load data into them and how you can query databases to extract just the information that you need.

Getting Started

Data Carpentry’s teaching is hands-on, so participants are encouraged to use their own computers to insure the proper setup of tools for an efficient workflow.
These lessons assume no prior knowledge of the skills or tools.

To get started, follow the directions in the “Setup” tab to download data to your computer and follow any installation instructions.

To most effectively use these materials, please make sure to install everything before working through this lesson.

For Instructors

If you are teaching this lesson in a workshop, please see the Instructor notes.

Schedule

Setup Download files required for the lesson
00:00 1. Introduction to SQL What is a relational database and why should I use it?
What is SQL?
00:25 2. Getting to know your data How to connect to database with python?
What is in the database?
What are common datatypes in SQL?
00:55 3. Basic Queries How do I write a basic query in SQL?
01:30 4. SQL Aggregation How can I summarize my data by aggregating, filtering, or ordering query results?
How to save query result?
02:30 5. Joins How do I bring data together from separate tables?
03:20 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.