DEV Community

Cover image for MySQL Hands-on Guide: Add Student Records and Calculate Department Salaries
Labby for LabEx

Posted on

MySQL Hands-on Guide: Add Student Records and Calculate Department Salaries

Stepping into the world of relational databases can feel overwhelming, but the best way to learn is by doing. Whether you are a complete beginner or looking to sharpen your SQL skills, this curated learning path takes you from the basics of data insertion to the power of analytical querying. Let's transform raw data into meaningful insights through these three hands-on MySQL challenges.

Add Student Personal Information

Add Student Personal Information

Difficulty: Beginner | Time: 5 minutes

In this challenge, you will practice using SQL INSERT statements to add student personal information to a database table.

Practice on LabEx → | Tutorial →

Add Student Information to Table

Add Student Information to Table

Difficulty: Beginner | Time: 5 minutes

In this challenge, we will be adding student personal information to a database. We will use INSERT statements to add the required information to the 'student' table in the given database. By completing this task, you will practice using SQL statements to insert data into a table.

Practice on LabEx → | Tutorial →

Average Salaries Per Department

Average Salaries Per Department

Difficulty: Beginner | Time: 5 minutes

In this challenge, we will be working with a university database and our task is to write a script that prints the average salary of each department in descending order. We will need to import the database, group the salary data by department, and calculate the average salary using the AVG() function. The result should display the department name and the corresponding average salary.

Practice on LabEx → | Tutorial →

These three labs are more than just exercises; they are the building blocks of your career as a data-driven professional. By moving from simple data entry to complex analytical queries, you are gaining the practical experience that sets you apart. Ready to put your skills to the test? Dive into these interactive MySQL labs today and start building your database expertise one query at a time.

Top comments (0)