Validating a Dataset

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, students will be given a business specification, and be required to validate the dataset against it.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Validate the PostgreSQL Table
  1. Validate the data contained in the PostgreSQL table ensuring that the ExpenseCode values are correct.
  2. Write the valid and invalid rows to seperate files.
Validate the CSV File
  1. Validate the data contained in the CSV file ensuring that the ExpenseCode values are correct.
  2. Write the valid and invalid rows to seperate files.

Additional Resources

In this hands-on lab, you have been tasked with validating data in a PostgreSQL database table named users, and a CSV file, demo.csv. The valid data has Expense Code values of only 100, 200, or 300. You will need to identify the valid rows, and invalid rows of both datasets, and write them to a separate file.

  • PostgreSQL Database: convert
  • PostgreSQL table: users
  • PostgreSQL username: postgres
  • CSV data file: demo.csv

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?