- Lab
- A Cloud Guru
Performing SQL Commands in MariaDB
Understanding databases is an essential skill for information security professionals. In this hands-on lab, you will learn about relational databases and how to perform SQL statements.
Path Info
Table of Contents
-
Challenge
Create a Student Record
Create a student record for yourself, and assign yourself a 3.7 grade point average (GPA).
Get started by using the command:
sudo mysql
Start MariaDB and access the database using the command:
use school;
Hint: Use the following command to see all the tables in the database:
show tables;
Hint: Use the following command to see all the columns in a table:
desc <table>;
-
Challenge
Identify Available Courses
Investigate the
courses
table, and find out which courses are available at the school. -
Challenge
Find a Teacher's Salary
Find the salary amounts for the teachers of courses
cs101
andcs201
using theWHERE
andOR
SQL statements. -
Challenge
Create a Teacher Record
Create a teacher record for a teacher named
tom pine
, who is paid a salary of35000
. -
Challenge
Update cs201
Assign
tom pine
as the teacher ofcs201
, using theUPDATE
statement, and then add yourself to the course.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.