Skip to main content

Analyzing Students’ Mental Health in SQL


In this live code-along, you'll perform exploratory data analysis on a dataset around mental health of domestic and international students. You'll perform SQL querying to look at how social connectedness and cultural issues affect mental health. Finally, you'll visualize the results of your analysis using the Python Plotly package.

Key takeaways

  • Perform exploratory data analysis to understand a new dataset

  • Write SQL queries to quantify a dataset

  • Visualize the results of a SQL analysis with interactive Python plots

Notebook access

  • When in Workspace, go to integrations on the left-side bar, then:

  • Click “Create integration,” select PostgreSQL, and enter:

  • Integration name: Live Training Student MH

  • Port: 5432

  • Hostname:

  • Database: students

  • Username: students_codealong

  • Password: students_codealong


  • Open your DataCamp Workspace account here

  • Solution notebook here

Start Code AlongView DatasetRead Paper
Jasmin Ludolf Headshot
Jasmin Ludolf

Data Science Content Developer @ DataCamp

View More Webinars

Recommended Content

Live Training: Analyzing Olympics Data with SQL and Python

Learn how to load data from different sources and perform exploratory analyses.


Spend Less Time in Spreadsheets with SQL

Hate wrangling data in spreadsheets? SQL does it better.


Hands-on learning experience

Companies using DataCamp achieve course completion rates 6X higher than traditional online course providers

Learn More

Upskill your teams in data science and analytics

Learn More

Join 2,500+ companies and 80% of the Fortune 1000 who use DataCamp to upskill their teams.

Don’t just take our word for it.