In this article, we will demonstrate how to import tables from a CSV file, map priority levels through transformations, and move the cleaned data into the destination database using Bold Data Hub. Follow the step-by-step process below.
Sample Data Source:
Learn about Pipeline Creation
Learn more about transformation here
Standardizing ticket priority levels into numeric values ensures consistency and simplifies processing. Common mappings include:
We use a CASE
statement to assign numeric values to the priority levels.
SELECT
t.*,
CASE
WHEN t.priority = 'Low' THEN 1
WHEN t.priority = 'Medium' THEN 2
WHEN t.priority = 'High' THEN 3
ELSE NULL
END AS Mapped_Priority
FROM {pipeline_name}.sample_csc_data t;