When you enroll in this course, you'll also be asked to select a specific program.
Learn new concepts from industry experts
Gain a foundational understanding of a subject or tool
Develop job-relevant skills with hands-on projects
Earn a shareable career certificate
There are 6 modules in this course
Much of the world's data resides in databases. SQL (or Structured Query Language) is a powerful language which is used for communicating with and extracting data from databases. A working knowledge of databases and SQL is a must if you want to become a data scientist.
The purpose of this course is to introduce relational database concepts and help you learn and apply foundational knowledge of the SQL and R languages. It is also intended to get you started with performing SQL access in a data science environment.
The emphasis in this course is on hands-on and practical learning. As such, you will work with real databases, real data science tools, and real-world datasets. Through a series of hands-on labs, you will practice building and running SQL queries. You will also learn how to access databases from Jupyter notebooks using SQL and R.
No prior knowledge of databases, SQL, R, or programming is required.
Anyone can audit this course at no charge. If you choose to take this course and earn the Coursera course certificate, you can also earn an IBM digital badge upon successful completion of the course.
Structured Query Language, or SQL, provides a standard language for selecting and manipulating data in a relational database. Understanding SQL is a foundational skill that you must have when applying data science principles in R because SQL is the key to helping you unlock insights about the information stored deep inside relational databases. In this module, you will learn some basic SQL statements and practice them hands-on on a live database.
In this module, you will explore the fundamental concepts behind databases, tables, and the relationships between them. You will then create an instance of a database, discover SQL statements that allow you to create and manipulate tables, and then practice them on your own live database.
In this module, you will learn how to use string patterns and ranges to search data and how to sort and group data in result sets. You will also practice composing nested queries and execute select statements to access data from multiple tables.
Summary: Functions, Multiple Tables, and Sub-queries•5 minutes
About this Optional Lesson•2 minutes
[Optional] Hands-on Lab Using IBM Db2•1 minute
4 assignments•Total 72 minutes
Graded Quiz: Refining Your Results•21 minutes
Graded Quiz: Functions, Multiple Tables, and Sub-Queries•21 minutes
Practice Quiz: Refining Your Results•15 minutes
Practice Quiz: Functions, Multiple Tables, and Sub-queries•15 minutes
4 app items•Total 240 minutes
Hands-on Lab: String Patterns, Sorting and Grouping•60 minutes
Hands-on Lab: Built-in functions•60 minutes
Hands-on Lab: Sub-queries and Nested SELECTs•60 minutes
Hands-on Lab: Working with Multiple Tables•60 minutes
5 plugins•Total 65 minutes
Reading: Examples for String Patterns, Sorting, and Grouping•15 minutes
Reading: Examples for Built-in Functions•15 minutes
Reading: Examples for Sub Queries and Nested Queries•15 minutes
Reading: Examples for Multiple Tables•15 minutes
SQL Cheat Sheet: Intermediate - LIKE, ORDER BY, GROUP BY•5 minutes
Getting Started with Databases using R
Module 4•6 hours to complete
Module details
In this module, you will learn the benefits of using R to connect to relational databases and how to persist R database objects in files. You’ll also learn some of the similarities between R data frames and relational databases, including how data types compare and when you must convert from one type to another to improve the effectiveness of your data analysis. Finally, you’ll learn different methods for connecting to a database from R.
Summary & Highlights: R and Relational Databases•10 minutes
Summary & Highlights : Connecting to Databases from R•10 minutes
About this Optional Lesson•2 minutes
4 assignments•Total 67 minutes
Graded Quiz: R and Relational Databases•21 minutes
Graded Quiz: Connecting to Databases from R•21 minutes
Practice Quiz: R and Relational Databases•10 minutes
Practice Quiz: Connecting to Databases from R•15 minutes
5 app items•Total 160 minutes
Hands-on Lab: Review using Jupyter and R Dataframes•15 minutes
Hands-on Lab: Accessing Your Database using RJDBC•60 minutes
Hands-on Lab: Accessing Your Database with RSQLite•60 minutes
[Optional] Hands-on Lab: Accessing Your Database using RJDBC with DB2•10 minutes
[Optional] Hands-on Lab: Accessing your Database using RODBC with DB2•15 minutes
5 plugins•Total 75 minutes
Cheat Sheet - R basics•15 minutes
Reading: Example for Connecting with RJDBC using SQLite•15 minutes
Reading: A Comprehensive Review of RSQLite•15 minutes
CheatSheet - Connecting to Databases using R•15 minutes
[Optional] Hands-on Lab: Create Db2 Service Credentials•15 minutes
Working with Database Objects using R
Module 5•3 hours to complete
Module details
In this module, you will learn the full process of accessing and querying databases using R. You’ll learn how to create the logical and physical model of the database and then implement the model by creating the physical database objects and loading them with data. Finally, you’ll examine an example of accessing and querying the database.
Summary and Highlights: Working with Database Objects using R •5 minutes
About this Optional Lesson•2 minutes
2 assignments•Total 31 minutes
Graded Quiz: Working with Database Objects using R•21 minutes
Practice Quiz: Working with Database Objects using R•10 minutes
2 app items•Total 90 minutes
Hands-on Lab: Creating and Querying Database Objects from R using RSQLite with SQLite•60 minutes
[Optional] Hands-on Lab: Creating and Querying Database Objects from R using RODBC with DB2•30 minutes
2 plugins•Total 30 minutes
Reading: Example for Creating and querying databases with SQLite using R•15 minutes
CheatSheet- Creating Database Objects & Querying Data from R•15 minutes
Course Project
Module 6•7 hours to complete
Module details
In this assignment, you will be working with multiple real-world datasets for the Canadian Crop Data and Exchange Rates. You will be asked questions that will help you understand the data just as you would in the real world. You will be assessed on the correctness of your SQL queries and results.
At IBM, we know how rapidly tech evolves and recognize the crucial need for businesses and professionals to build job-ready, hands-on skills quickly. As a market-leading tech innovator, we’re committed to helping you thrive in this dynamic landscape. Through IBM Skills Network, our expertly designed training programs in AI, software development, cybersecurity, data science, business management, and more, provide the essential skills you need to secure your first job, advance your career, or drive business success. Whether you’re upskilling yourself or your team, our courses, Specializations, and Professional Certificates build the technical expertise that ensures you, and your organization, excel in a competitive world.
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Learner reviews
4.4
192 reviews
5 stars
66.14%
4 stars
18.22%
3 stars
8.85%
2 stars
2.08%
1 star
4.68%
Showing 3 of 192
A
AN
5·
Reviewed on Apr 11, 2022
Very useful course for those who wants to learn SQL.
M
MB
4·
Reviewed on Feb 12, 2025
The content and pacing were excellent. I came into the course with plenty of PL/SQL experience, and left feeling like I had a strong foundation with how SQL works in R.
H
HD
4·
Reviewed on Mar 4, 2022
This skills in this course are easy to learn, the simplicity of the materials is what I like the most about IBM courses.
When will I have access to the lectures and assignments?
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
What will I get if I subscribe to this Certificate?
When you enroll in the course, you get access to all of the courses in the Certificate, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.