VOOZH about

URL: https://www.coursera.org/learn/sql-data-science-r

⇱ SQL for Data Science with R | Coursera


SQL for Data Science with R

Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.

SQL for Data Science with R

This course is part of multiple programs.

28,934 already enrolled

Included with

Ask Coursera

Gain insight into a topic and learn the fundamentals.
4.4

192 reviews

Beginner level

Recommended experience

Flexible schedule
3 weeks at 10 hours a week
Learn at your own pace
95%
Most learners liked this course

Gain insight into a topic and learn the fundamentals.
4.4

192 reviews

Beginner level

Recommended experience

Flexible schedule
3 weeks at 10 hours a week
Learn at your own pace
95%
Most learners liked this course

What you'll learn

  • Create and access a database instance on the cloud

  • Compose and execute basic SQL statements - SELECT, INSERT, UPDATE, DELETE, CREATE, DROP

  • Construct SQL statements to filter, sort, group results, use built-in functions, compose nested queries, access multiple tables

  • Analyze data from Jupyter using R and SQL by combining SQL and R skills to query real-world datasets

Details to know

Shareable certificate

Add to your LinkedIn profile

Assessments

15 assignments¹

AI Graded see disclaimer
Taught in English

Build your subject-matter expertise

This course is available as part of
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.

What's included

5 videos2 readings2 assignments3 app items2 plugins

5 videosTotal 17 minutes
  • Welcome to SQL for Data Science5 minutes
  • SELECT Statement4 minutes
  • COUNT, DISTINCT, LIMIT2 minutes
  • INSERT Statement3 minutes
  • UPDATE and DELETE Statements3 minutes
2 readingsTotal 9 minutes
  • Course Overview 4 minutes
  • Module Summary: Getting Started with SQL5 minutes
2 assignmentsTotal 36 minutes
  • Graded Quiz: Getting Started with SQL21 minutes
  • Practice Quiz: Getting Started with SQL 15 minutes
3 app itemsTotal 70 minutes
  • Hands-on Lab: Simple SELECT Statements20 minutes
  • Hands-on Lab: COUNT, DISTINCT, LIMIT30 minutes
  • Hands-on Lab: INSERT, UPDATE, and DELETE20 minutes
2 pluginsTotal 20 minutes
  • SELECT statement examples5 minutes
  • SQL Cheat Sheet: Basics - SELECT, INSERT, UPDATE, DELETE, COUNT, DISTINCT, LIMIT15 minutes

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.

What's included

6 videos3 readings2 assignments3 app items2 plugins

6 videosTotal 26 minutes
  • Introduction to Databases4 minutes
  • Relational Database Concepts6 minutes
  • Types of SQL statements (DDL vs. DML)2 minutes
  • CREATE TABLE Statement4 minutes
  • ALTER, DROP, and Truncate tables4 minutes
  • How to create a Database instance on Cloud6 minutes
3 readingsTotal 5 minutes
  • Module Summary: Introduction to Relational Databases and Tables2 minutes
  • About this Optional Lesson2 minutes
  • [Optional] Hands-on Lab Using IBM Db21 minute
2 assignmentsTotal 31 minutes
  • Graded Quiz: Introduction to Relational Databases and Tables21 minutes
  • Practice Quiz: Introduction to Relational Databases and Tables10 minutes
3 app itemsTotal 150 minutes
  • Hands-on Lab: CREATE, ALTER, TRUNCATE, DROP into Tables in MySQL using phpMyAdmin60 minutes
  • Hands-on Lab: Create and Load Tables using SQL Scripts60 minutes
  • Obtain IBM Cloud Feature Code and Activate Trial Account30 minutes
2 pluginsTotal 10 minutes
  • Examples to CREATE and DROP tables5 minutes
  • SQL Cheat Sheet: CREATE TABLE, ALTER, DROP, TRUNCATE5 minutes

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.

What's included

7 videos4 readings4 assignments4 app items5 plugins

7 videosTotal 31 minutes
  • Using String Patterns and Ranges4 minutes
  • Sorting Result Sets3 minutes
  • Grouping Result Sets4 minutes
  • Built-in Database Functions6 minutes
  • Date and Time Built-in Functions3 minutes
  • Sub-Queries and Nested Selects5 minutes
  • Working with Multiple Tables6 minutes
4 readingsTotal 13 minutes
  • Summary: Refining Your Results5 minutes
  • Summary: Functions, Multiple Tables, and Sub-queries5 minutes
  • About this Optional Lesson2 minutes
  • [Optional] Hands-on Lab Using IBM Db21 minute
4 assignmentsTotal 72 minutes
  • Graded Quiz: Refining Your Results21 minutes
  • Graded Quiz: Functions, Multiple Tables, and Sub-Queries21 minutes
  • Practice Quiz: Refining Your Results15 minutes
  • Practice Quiz: Functions, Multiple Tables, and Sub-queries15 minutes
4 app itemsTotal 240 minutes
  • Hands-on Lab: String Patterns, Sorting and Grouping60 minutes
  • Hands-on Lab: Built-in functions60 minutes
  • Hands-on Lab: Sub-queries and Nested SELECTs60 minutes
  • Hands-on Lab: Working with Multiple Tables60 minutes
5 pluginsTotal 65 minutes
  • Reading: Examples for String Patterns, Sorting, and Grouping15 minutes
  • Reading: Examples for Built-in Functions15 minutes
  • Reading: Examples for Sub Queries and Nested Queries15 minutes
  • Reading: Examples for Multiple Tables15 minutes
  • SQL Cheat Sheet: Intermediate - LIKE, ORDER BY, GROUP BY5 minutes

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.

What's included

10 videos3 readings4 assignments5 app items5 plugins

10 videosTotal 27 minutes
  • Why use R with Relational Databases 2 minutes
  • R Persistence Options1 minute
  • Terminology Comparison2 minutes
  • Mapping Data between R and RDBMS2 minutes
  • Database Design Considerations3 minutes
  • Connectivity Options3 minutes
  • Connecting with RJDBC 3 minutes
  • Connectivity using ODBC3 minutes
  • RODBC in Detail 5 minutes
  • Metadata Discovery 4 minutes
3 readingsTotal 22 minutes
  • Summary & Highlights: R and Relational Databases10 minutes
  • Summary & Highlights : Connecting to Databases from R10 minutes
  • About this Optional Lesson2 minutes
4 assignmentsTotal 67 minutes
  • Graded Quiz: R and Relational Databases21 minutes
  • Graded Quiz: Connecting to Databases from R21 minutes
  • Practice Quiz: R and Relational Databases10 minutes
  • Practice Quiz: Connecting to Databases from R15 minutes
5 app itemsTotal 160 minutes
  • Hands-on Lab: Review using Jupyter and R Dataframes15 minutes
  • Hands-on Lab: Accessing Your Database using RJDBC60 minutes
  • Hands-on Lab: Accessing Your Database with RSQLite60 minutes
  • [Optional] Hands-on Lab: Accessing Your Database using RJDBC with DB210 minutes
  • [Optional] Hands-on Lab: Accessing your Database using RODBC with DB215 minutes
5 pluginsTotal 75 minutes
  • Cheat Sheet - R basics15 minutes
  • Reading: Example for Connecting with RJDBC using SQLite15 minutes
  • Reading: A Comprehensive Review of RSQLite15 minutes
  • CheatSheet - Connecting to Databases using R15 minutes
  • [Optional] Hands-on Lab: Create Db2 Service Credentials15 minutes

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.

What's included

6 videos2 readings2 assignments2 app items2 plugins

6 videosTotal 18 minutes
  • Working with Data 4 minutes
  • Database Design and Data Preparation3 minutes
  • Creating Physical Database Objects3 minutes
  • Loading the Data1 minute
  • Querying Data (SQL SELECT)4 minutes
  • Analyzing the Data3 minutes
2 readingsTotal 7 minutes
  • Summary and Highlights: Working with Database Objects using R 5 minutes
  • About this Optional Lesson2 minutes
2 assignmentsTotal 31 minutes
  • Graded Quiz: Working with Database Objects using R21 minutes
  • Practice Quiz: Working with Database Objects using R10 minutes
2 app itemsTotal 90 minutes
  • Hands-on Lab: Creating and Querying Database Objects from R using RSQLite with SQLite60 minutes
  • [Optional] Hands-on Lab: Creating and Querying Database Objects from R using RODBC with DB230 minutes
2 pluginsTotal 30 minutes
  • Reading: Example for Creating and querying databases with SQLite using R15 minutes
  • CheatSheet- Creating Database Objects & Querying Data from R15 minutes

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.

What's included

1 reading1 assignment1 peer review5 app items2 plugins

1 readingTotal 2 minutes
  • Congratulations & Next Steps2 minutes
1 assignmentTotal 50 minutes
  • Final Exam50 minutes
1 peer reviewTotal 60 minutes
  • Option 2: Peer Graded - Final Project Submission and Evaluation60 minutes
5 app itemsTotal 255 minutes
  • Hands-on Lab: Practice Querying Real World Datasets using RSQLite with SQLite60 minutes
  • [Optional] Hands-on Lab: Practice Querying Real World Datasets using RODBC with DB230 minutes
  • Lab for Final Project - Data Analytics for Canadian Crop Production Data Set60 minutes
  • [Optional] Jupyter Notebook with Problems for Peer Reviewed Assignment using RODBC with DB245 minutes
  • Option 1: AI Graded - Final Project: Submission and Evaluation60 minutes
2 pluginsTotal 25 minutes
  • Final Project Overview20 minutes
  • Reading: Final Project Submission Guidelines and Deliverables5 minutes

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Instructor ratings
4.4 (68 ratings)
IBM
55 Courses5,118,042 learners

Offered by

Explore more from Data Analysis

Why people choose Coursera for their career

👁 Image

Felipe M.

Learner since 2018
"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."
👁 Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
👁 Image

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."
👁 Image

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

  • 5 stars

    66.32%

  • 4 stars

    18.13%

  • 3 stars

    8.80%

  • 2 stars

    2.07%

  • 1 star

    4.66%

Showing 3 of 192

AN
·

Reviewed on Apr 11, 2022

Very useful course for those who wants to learn SQL.

MB
·

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.

HD
·

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.

Frequently asked questions

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.

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.

Financial aid available,

¹ Some assignments in this course are AI-graded. For these assignments, your data will be used in accordance with Coursera's Privacy Notice.