Transforming Data

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, students will be presented with a dataset and a set of transformations to be applied.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Cleanse the Data
  1. Truncate the department column of the users table to 3 characters.
Append the Expense Code
  1. Append the expense code value to the department column.
Count the Expenses
  1. Sum expense amounts from expenses table for each department.

Additional Resources

In this hands-on Lab you have been tasked with transforming a dataset in a PostgreSQL database. After connecting to the database named demo as the postgres user, you will need to complete the following steps to accomplish this:

  • Cleanse the data by truncating the department column of the users table to 3 characters.
  • Append the expense code value to the department column of the users table.
  • Sum expense amounts from expenses table for each department.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?