Back to Portfolio

Job Posting ETL Pipeline

Automated and fully reproducible ETL pipeline for extracting and standardizing job posting skill mentions, loaded and normalized in a SQL Server database.

Project Overview

Core Features

Key Technologies

Pipeline Metrics

Diagram of ETL Pipeline for Job Posting Skill Mentions
Figure 1. ETL pipeline for job posting skill mentions including input documents, Python extraction, skill standardization workbook, and SQL Server staging and core schemas.
Run demo pipeline (GitHub)
(Instructions in README)
Documentation Overview

The pipeline documentation is organized into the following sections:

  1. Real & Synthetic Input Datasets
  2. Skill Standardization System
  3. Python Data Extraction
  4. SQL Server Database Design & Loading
1. Real & Synthetic Input Datasets

The ETL pipeline takes a collection of annotated job postings as input and extracts the metadata and highlighted skill mentions from each posting. The original dataset comprises 36 job postings that are kept private in order to comply with copyright and Terms of Service regulations.

Instead, a functionally identical dataset of 36 synthetic job postings was carefully engineered, producing the same pipeline output as the real dataset. The synthetic dataset ensures that the end-to-end ETL pipeline is publicly shareable and fully reproducible, without exposing copyrighted material.

Example of diversely phrased skill mentions mapping to a single preliminary 
                    skill
Figure 2. Example of a real versus synthetic job posting producing the same extracted skill mentions, demonstrating pipeline consistency and copyright compliance.
Highlighted skill mentions

Skill mentions are identified and highlighted manually within each job posting, using turquoise to highlight hard skills and pink to highlight soft skills.

A Python script parses and extracts the highlighted skill mentions, independent of the surrounding sentence context. Consequently, a real and a synthetic job posting can produce an identical set of extracted skill mentions despite having different surrounding text.

In the example below, the pipeline extracts the record JP_25, analysing and interpreting data, hard from both the real and synthetic job postings, while the synthetic version avoids redistributing copyrighted material.

  • • JP_25 (real): You will specialise in analysing and interpreting data, providing actionable insights to inform strategic decisions for both our clients & internal operations.
  • • JP_25 (synthetic): Assist in analysing and interpreting data using SQL and Power BI to leverage data to drive insights that inform strategic decisions.
Synthetic dataset engineering

For every real job posting (36 in total), a synthetic version was carefully constructed. A fictional company name and a new location is assigned to every real company in the original dataset. This enables company-level frequency analysis without exposing real organizations.

The Python extraction script would first process the real job posting, and the list of extracted skill mentions would then be used to create a synthetic job posting using the following Chat GPT prompt template:

Verification of dataset equivalence

The equivalence between the real and synthetic datasets is verified using an Excel workbook that imports the extracted CSV files from both datasets and checks that every skill mention extracted from the synthetic dataset exists in the real dataset, and vice versa.

Example of diversely phrased skill mentions mapping to a single preliminary 
                    skill
Figure 3. Excel workbook verifying that the real and synthetic job posting datasets produce identical ETL pipeline outputs.
2. Skill Standardization System

Skill requirements across job postings are expressed in highly variable surface forms. Differences in formatting (e.g., “Power BI” vs “PowerBI”) or phrasing (e.g., “multi-tasking” vs “handling multiple tasks concurrently”) cause misleading frequency counts and unreliable aggregations.

As a result, extracted skill mentions cannot be used directly for structured skill demand analysis without a prior standardization process.

To address this issue, I designed a taxonomy-driven standardization system in Excel for downstream analytical use that transforms raw skill mentions into standardized skills enriched with hierarchical skill classification.

The full documentation is available in the dedicated Skill Standardization System project page.

Skill standardization system architecture
Figure 4. Skill standardization system with input/output schemas, mapping stages, and skill taxonomy.
Workflow overview

The skill standardization system transforms raw skill mentions into standardized skills through a two-stage mapping workflow.

For each raw extracted_skill, the user first enters a preliminary standardization. Then, for each unique preliminary_skill, the user selects a standardized_skill from a controlled skill taxonomy. The taxonomy can be expanded as needed with additional standardized skills classified by their skill type (hard or soft), category, and subcategory.

The final standardized skill is fetched automatically via the preliminary mapping layer, which helps prevent inconsistent mappings and enables systematic updates.

Example of a single preliminary mapping being assigned to diverse job posting
                    extractions
Figure 5. Example of diverse raw skill mentions mapping to a smaller number of preliminary skills that converge into a single standardized skill.
Standardization output

The skill standardization system produces a standardized analytical dataset that transforms variable skill mentions into validated, taxonomy-classified records, suitable for downstream analysis and visualization.

Each standardized record is defined by the following fields:

  • • job_id: Unique job posting identifier
  • • extracted_skill: Exact skill phrase extracted from the original job posting
  • • standardized_skill: Standardized skill phrase
  • • skill_type: Standardized skill type (hard or soft)
  • • skill_category: Main skill category
  • • skill_subcategory: Skill subcategory

Additionally, each record contains validation metadata used for excluding invalid records from analysis:

valid_mapping = TRUE
valid_standardized_skill = TRUE 
valid_classification = TRUE 

The following interactive dashboard was built directly in Excel using the standardized dataset, enabling multidimensional exploration of skill demand across the analyzed job postings.

3. Python Data Extraction

Two Python scripts automate extraction from the annotated Word job posting documents and the Excel skill standardization workbook.

The two extraction scripts together produce the structured data required for downstream analysis:

  • •

    Job posting metadata identifying each job posting (e.g. company, location).

  • •

    Raw skill mentions that occur in specific job postings (e.g. “PowerBI” in JP_27).

  • •

    Standardized skills mapping each raw skill mention to its standardized form (e.g. PowerBI → Power BI).

  • •

    Skill classifications for each standardized skill (e.g. Power BI → hard skill → Tool / Technology → Analytics / BI tools).

The resulting CSV files form a structured, reproducible dataset used as input for the SQL Server database and serve as the basis for subsequent skill-demand analysis.

Example of a single preliminary mapping being assigned to diverse job posting
                    extractions
Figure 9. Python extraction layer within the broader ETL pipeline, showing the source documents, extraction scripts, and resulting CSV files.
Job posting extraction

This Python script loops over a directory of annotated job posting (.docx) files and for each job posting:

  1. extracts job posting metadata from the document header;
  2. extracts highlighted skill phrases (hard and soft) from the job posting body;

then writes the results to two separate CSV files.

Example of a single preliminary mapping being assigned to diverse job posting
                    extractions
Figure 10. CSV files generated by the Python job posting extraction script: job posting metadata (top) and skill mentions (bottom).

Skill mentions are highlighted manually during the annotation process and are then extracted programmatically from each job posting. Highlight color determines the observed_skill_type, using turquoise for hard skills and pink for soft skills. Job postings often list the same skill twice but the script ignores duplicates since it tracks whether a skill appears in a job post, rather than the number of times it is listed in a single document.

A predefined metadata schema is used for job posting extraction and validation. Every job posting must have the following mandatory fields: job_id, company, and job_title. Files missing any required job posting metadata are rejected and logged in the console output.

Queue status indicator updating as an already mapped raw skill gets modified
Figure 10. Batch job posting extraction running in real time, showing progress logging, the extraction run summary, and rejected-file reporting.
Skill standardization extraction

This Python script extracts three named tables from the Excel skill standardization workbook and writes the results to three separate CSV files:

  1. extracted skill mentions mapped to standardized skills;
  2. standardized skills with a classification hierarchy of skill type, category, and subcategory;
  3. approved skill type, category, and subcategory combinations.
Example of a single preliminary mapping being assigned to diverse job posting
                    extractions
Figure 11. Extracted skill standardization tables, showing the relationships between skill mappings, the taxonomy, and approved classification combinations.

The tables contain row-level validation metadata: valid_mapping, valid_standardized_skill, and valid_classification. These fields are included in the CSV exports and later used in SQL Server to filter out invalid records from analyses.

Output dataset metrics
  • • 36 job postings processed
  • • 889 skill mentions extracted
  • • 889 skill mentions standardized
  • • 158 skill taxonomy records
  • • 25 skill classification combinations
4. SQL Server Database Design & Loading

The JobPostingsAnalysis database is hosted in SQL Server and is organized into two schemas – staging and core – each serving a distinct role in the data pipeline.

The staging schema preserves the source data imported with each load, including validation metadata, error messages, and missing or duplicate values. Each load is assigned a unique identifier, enabling the investigation of data-quality issues across historical loads. Fields such as observed_skill_type and preliminary_skill also provide insight into the skill standardization process.

The core schema represents the outcome of a process in which skills are identified → extracted → standardized → stored in a relational model. It stores data from the latest load that has passed the defined validation and standardization rules. The data is organized into normalized tables with enforced relationships and constraints, providing a consistent foundation for downstream skill demand analysis.

Pipeline with a focus on input datasets and the SQL Server database
Figure 12. SQL Server database layer within the broader ETL pipeline including the input datasets and the staging and core schemas.
Staging schema design

The staging schema is defined in a SQL script that creates four landing tables for the input CSV datasets:

  1. job_posting_metadata: each row represents a job posting and its corresponding metadata, such as company, location, and job title.
  2. standardized_raw_skills: each row represents an extracted skill, its standardized form, and mapping validation metadata.
  3. skill_taxonomy: each row represents a standardized skill and its classification by skill type, skill category, and skill subcategory, together with validation metadata.
  4. skill_classifications: each row represents an approved combination of skill type, category, and subcategory.
Diagram of SQL Server database staging schema
Figure 13. Diagram depicting the staging schema of the SQL Server JobPostingAnalysis database, serving as a landing stage for the source input datasets.

The staging schema appends each incoming load while preserving previous ones, enabling comparisons between historical loads and facilitating the investigation of potential data-quality issues. Each record in staging is assigned:

  • • load_run_id: unique identifier generated for each load run, identifying all records belonging to the same load. A timestamp alone is insufficient for this purpose since a single load may span multiple timestamps.
  • • loaded_at: timestamp recording when each record is loaded, which helps identify the most recent load through its associated load_run_id.
Loading source data into staging

Loading data into the staging schema is executed by a SQL script within a single TRANSACTION. If an error occurs at any point during the load, the transaction is rolled back. This ensures that the source data – consisting of multiple CSV files – is captured as a complete snapshot at the time of each load, preventing partial data loads.

First, a new load_run_id is generated which is shared by every record inserted during the current load. Then, for each staging table:

  1. A temporary import table is created with the same structure as the source CSV file. Intermediary tables are necessary because the source CSVs do not contain the ETL-specific load_run_id field.
  2. The CSV data is imported into the temporary table using BULK INSERT, with the file path resolved through the $(PROJECT_ROOT) variable passed by the Python pipeline orchestrator.
  3. All records from the temporary table are inserted into the corresponding staging table, with the current load_run_id being applied to every row.
  4. The temporary import table is dropped before processing the next dataset.
Data quality across historical loads

The following query demonstrates how the staging schema can be used to investigate data quality across historical loads. A skill record from the latest load has an invalid mapping, preventing it from being included in the final analytical dataset. The validation metadata stored by the staging model helps identify the reason for the failure, and comparison with previous successful loads provides historical context.

Results:

loaded_at      job_id  extracted  preliminary  standardized  valid_mapping  error_message              load_run_id
-------------  ------  ---------  -----------  ------------  -------------  -----------------------    -----------
Oct 11, 12:42  JP_26   Tableau    Tableau      Tableau       1              NULL                       497D7976...
Oct 11, 18:53  JP_26   Tableau    Tableau      Tableau       1              NULL                       CB81D73E...
Oct 12, 11:00  JP_26   Tableau    Tableau      Tableau       1              NULL                       4DEFD1AE...
Oct 12, 12:15  JP_26   Tableau    NULL         NULL          0              Empty preliminary skill    CFAA3A25...
Core schema design

The core schema is defined in a SQL script that creates six normalized relational tables:

  1. companies: each row represents a unique company.
  2. locations: each row represents a unique location, defined by city and country, with an optional region.
  3. job_postings: each row represents a unique job posting, defined at least by job ID, job title, company, and location.
  4. skill_classifications: each row represents an approved combination of skill type (hard or soft), skill category, and subcategory.
  5. standardized_skills: each row represents a unique standardized skill and its classification by skill type, skill category, and skill subcategory.
  6. skill_mentions: each row represents a unique skill mention, defined by the job posting it occurred in, the original skill phrase extracted from the job posting, and the standardized skill assigned during standardization.
Diagram of SQL Server database core schema
Figure 14. Diagram depicting the core schema of the SQL Server JobPostingAnalysis database, providing normalized and validated relational data ready for analysis.
Loading data into core

Loading data into the core schema is performed in two phases within a single SQL script :

  • • Phase 1 = delete all stale or invalid records from core.
  • • Phase 2 = load the newest records from staging that are not present in core.

The full load script is executed within a single TRANSACTION, so that if an error occurs at any point during the load, the entire transaction is rolled back. This prevents partial deletion or insertion of data, ensuring that the core schema is a complete representation of the latest validated and normalized data.

Phase 1 (Deletion)

Before loading the latest staging records, the script first deletes all records from core that have become stale or invalid.

  • • Stale: A core record no longer has a corresponding record in the latest staging load.
-- Delete stale companies 
DELETE c
FROM core.companies AS c
WHERE NOT EXISTS (
   SELECT 1 
   FROM staging.job_posting_metadata AS s
   WHERE s.company = c.company
      AND s.load_run_id = @load_run_id	-- Latest staging load
);
  • • Invalid: A core record has a corresponding record in the latest staging load but has failed validation in the upstream skill standardization process. Invalid records are identified using the validation flags imported into staging:
-- staging.standardized_raw_skills 
valid_mapping = 0

-- staging.skill_taxonomy
valid_standardized_skill = 0
valid_classification = 0

Example: Job posting JP_09 is temporarily excluded from the source dataset to test the synchronization logic. As a result, the job posting and all of its associated skill mentions (15) become stale records in core. Since Nexora Consulting has no other job postings in the dataset, the company becomes stale as well. The script deletes these stale records in dependency order, producing the following console output:

Phase 2 (Insertion)

After stale and invalid records are deleted from core, the script populates the core tables using incremental loading: only those records are inserted from the latest staging load that are not present core. Insert operations respect the defined UNIQUE, NOT NULL, and referential integrity constraints while transforming data from the four staging tables into the six normalized core tables.

-- Load core.companies 
INSERT INTO core.companies (
    company
)
SELECT DISTINCT
    s.company
FROM staging.job_posting_metadata AS s
LEFT JOIN core.companies AS c
    ON s.company = c.company
WHERE c.company_id IS NULL
    AND s.load_run_id = @load_run_id; -- Latest staging load

Example (continued): Once job posting JP_09 is added back into the source dataset, it is included in the latest staging load. The job posting, its 15 skill mentions, and the company are identified as new records and inserted into the core tables in dependency order, producing the following console output:

==========================================
Load data into core tables
==========================================

Companies:                      1 inserted
Locations:                      0 inserted
Job postings:                   1 inserted
Skill classifications:          0 inserted
Standardized skills:            0 inserted
Skill mentions:                 15 inserted

[OK] Successfully loaded all core tables.
Load run ID: A23BDB3E-E74B-4CFC-BBAF-37E9EED3EE01

Example walk-through

The diagram below illustrates how data flows through the ETL pipeline by tracing a single, concrete skill mention. PowerBI is highlighted and extracted from JP_27 along with the job posting’s metadata. PowerBI enters the skill standardization workbook and is standardized as Power BI, while Power BI is classified as a hard skill, a Tool/Technology, and an Analytics/BI tool.

The extracted datasets are loaded into the SQL Server database’s staging schema and then transformed into six relational tables in core. The resulting model provides a validated, consistent foundation for querying skill demand across job postings, companies, and skill classifications.

Diagram of the ETL process with a focus a database focus
Figure 15. Data flowing through the ETL pipeline with a focus on the SQL Server database, showing core schema tables with example data.