{
  "format": "dataset-manifest/1",
  "slug": "compensation-insights",
  "version": 3,
  "seed": "compensation-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "compensation-insights",
    "name": "Compensation Insights",
    "tagline": "Employee compensation data including job roles, payment methods, tax brackets, and benefits packages.",
    "description": "An organization manages employee compensation through a structured approach, ensuring every aspect is meticulously calculated and administered. Employees receive payments based on their designated job roles, which define their responsibilities and corresponding salary structures. The organization also accommodates various payment methods, providing flexibility in how employees receive their earnings. Each employee’s compensation is further influenced by the applicable tax brackets, which dictate how much is withheld from their paychecks, and benefits packages, designed to enhance job satisfaction and attract talent. Deductions for various reasons are carefully tracked, ensuring compliance and transparency in the payroll process.\n\nThe dataset contains interconnected tables that provide a holistic view of compensation management. Each row in the employees table represents an individual employee, containing essential details like their unique identifier, job role, and payment method. The job_roles table outlines different positions within the organization, linking specific roles to their respective pay rates. Payment_methods captures how employees prefer to receive their wages, whether through direct deposit, checks, or alternative methods. The tax_brackets table defines the different tax rates applicable to various income levels, impacting employees' net pay. Additionally, the benefits_packages table lists available perks, such as health insurance and retirement plans, while the deductions table accounts for any withholdings from employees' earnings.\n\nThis dataset is particularly useful for exploring questions related to compensation equity, salary trends across different job roles, and the impact of various benefits on employee satisfaction. Developers can practice querying for trends, calculating averages, and performing joins to analyze how different elements of compensation correlate. It’s important to note that the data is synthetic, allowing for experimentation without concerns about privacy or security. Dive into this rich dataset to enhance your data analysis skills in the realm of human resources.",
    "domain": "hr",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "employee compensation",
      "salary management",
      "benefits",
      "HR analytics",
      "deductions",
      "payment methods",
      "tax brackets"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "employees": {
        "description": "This table contains records of employees, detailing personal information and their roles within the organization. Each employee is linked to their job role, payment method, and benefits package.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each employee."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the employee."
          },
          "job_role_id": {
            "kind": "fk",
            "ref": "job_roles.id",
            "description": "The job role assigned to the employee."
          },
          "payment_method_id": {
            "kind": "fk",
            "ref": "payment_methods.id",
            "description": "The method used to pay the employee."
          },
          "benefits_package_id": {
            "kind": "fk",
            "ref": "benefits_packages.id",
            "description": "The benefits package available to the employee."
          },
          "hire_date": {
            "kind": "date",
            "from": "2015-01-01",
            "to": "2023-12-31",
            "description": "The date when the employee was hired.",
            "nullable": true,
            "trend": "growing"
          }
        }
      },
      "job_roles": {
        "description": "This table lists various job roles available in the organization along with their corresponding salary ranges. Each role can have unique characteristics influencing compensation.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each job role."
          },
          "title": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The title of the job role.",
            "pool": [
              "manager",
              "analyst",
              "developer",
              "director",
              "coordinator",
              "specialist",
              "consultant",
              "officer",
              "administrator",
              "engineer",
              "assistant",
              "executive",
              "lead",
              "associate",
              "representative",
              "strategist",
              "architect",
              "designer",
              "researcher",
              "trainer"
            ]
          },
          "salary_min": {
            "kind": "decimal",
            "min": 30000,
            "max": 120000,
            "scale": 2,
            "description": "Minimum salary for the job role.",
            "distribution": "long-tail"
          },
          "salary_max": {
            "kind": "decimal",
            "min": 30000,
            "max": 120000,
            "scale": 2,
            "description": "Maximum salary for the job role.",
            "distribution": "long-tail"
          },
          "tax_bracket_id": {
            "kind": "fk",
            "ref": "tax_brackets.id",
            "description": "The applicable tax bracket for this job role."
          }
        }
      },
      "payment_methods": {
        "description": "This table outlines the different payment methods available for employee salaries, such as direct deposit, checks, and cash.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each payment method."
          },
          "method": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the payment method.",
            "pool": [
              "credit",
              "debit",
              "transfer",
              "check",
              "cash",
              "paypal",
              "wire",
              "direct",
              "mobile",
              "voucher",
              "crypto",
              "gift",
              "prepaid",
              "invoice",
              "salary",
              "benefit",
              "reimbursement",
              "stipend"
            ]
          }
        }
      },
      "tax_brackets": {
        "description": "This table represents various tax brackets applicable to employees based on their earnings. Each bracket defines the percentage deducted from salaries.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each tax bracket."
          },
          "bracket_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the tax bracket.",
            "pool": [
              "low",
              "middle",
              "high",
              "standard",
              "premium",
              "basic",
              "reduced",
              "increased",
              "exempt",
              "special",
              "additional",
              "flat",
              "variable",
              "progressive",
              "fixed"
            ]
          },
          "percentage": {
            "kind": "decimal",
            "min": 0,
            "max": 0.5,
            "scale": 2,
            "description": "The percentage deducted for this tax bracket."
          }
        }
      },
      "benefits_packages": {
        "description": "This table contains information on various benefits packages offered to employees, including health insurance, retirement plans, and paid time off.",
        "rows": 15,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each benefits package."
          },
          "package_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the benefits package.",
            "pool": [
              "health",
              "dental",
              "vision",
              "retirement",
              "wellness",
              "life",
              "disability",
              "paid_time_off",
              "flexible",
              "tuition",
              "transportation",
              "childcare",
              "gym",
              "employee_assistance",
              "stock_options",
              "bonus",
              "vacation",
              "sick_leave"
            ]
          },
          "description": {
            "kind": "paragraph",
            "min": 10,
            "max": 200,
            "description": "A detailed description of what the benefits package includes.",
            "nullable": true
          }
        }
      },
      "deductions": {
        "description": "This table records different deductions applicable to employee salaries, such as health insurance premiums, retirement contributions, and tax deductions.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each deduction."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "description": "The employee to whom the deduction applies."
          },
          "deduction_type": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The type of deduction.",
            "nullable": true,
            "pool": [
              "tax",
              "insurance",
              "retirement",
              "union",
              "charity",
              "garnishment",
              "benefit",
              "loan",
              "fines",
              "fees",
              "contribution",
              "withholding",
              "voluntary",
              "mandatory",
              "medical",
              "dental",
              "vision"
            ]
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 2000,
            "scale": 2,
            "description": "The amount of the deduction.",
            "distribution": "long-tail"
          },
          "effective_date": {
            "kind": "date",
            "from": "2015-01-01",
            "to": "2023-12-31",
            "description": "The date when the deduction becomes effective.",
            "trend": "seasonal"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "categorical",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What is the average salary by job role?",
      "How do deductions vary across different payment methods?",
      "Which benefits packages are most commonly chosen by employees?",
      "What percentage of salaries falls into each tax bracket?",
      "How do hire dates correlate with the types of benefits offered?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Employees with Job Roles",
        "sql": "SELECT e.full_name, j.title FROM employees e JOIN job_roles j ON e.job_role_id = j.id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Salary by Job Role",
        "sql": "SELECT j.title, AVG(j.salary_min + (j.salary_max - j.salary_min) / 2) AS average_salary FROM job_roles j GROUP BY j.title;",
        "dialect": "postgres"
      },
      {
        "title": "Total Deductions by Employee",
        "sql": "SELECT e.full_name, SUM(d.amount) AS total_deductions FROM employees e JOIN deductions d ON e.id = d.employee_id GROUP BY e.full_name;",
        "dialect": "postgres"
      },
      {
        "title": "Benefits Package Popularity",
        "sql": "SELECT b.package_name, COUNT(e.id) AS employee_count FROM employees e JOIN benefits_packages b ON e.benefits_package_id = b.id GROUP BY b.package_name;",
        "dialect": "postgres"
      },
      {
        "title": "Salary Distribution by Tax Bracket",
        "sql": "SELECT t.bracket_name, COUNT(e.id) AS employee_count FROM employees e JOIN job_roles j ON e.job_role_id = j.id JOIN tax_brackets t ON j.tax_bracket_id = t.id GROUP BY t.bracket_name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Analytics for Compensation Management",
        "body": "HR analysts can use this dataset to analyze employee compensation trends over time. By examining salaries, deductions, and benefits, they can identify patterns and recommend adjustments to ensure competitive compensation packages."
      },
      {
        "title": "Teaching Compensation Strategies",
        "body": "Educators can utilize this dataset to teach students about compensation management. By working with real-world data, students can learn how different factors like job roles and tax brackets influence overall employee pay."
      },
      {
        "title": "ETL Process Simulation",
        "body": "Data engineers can employ this dataset to practice building ETL pipelines. They can extract, transform, and load the data into a data warehouse, preparing it for reporting and analysis."
      },
      {
        "title": "Benefits Analysis for Employee Retention",
        "body": "Organizational leaders can analyze the benefits packages offered to employees and assess their impact on employee retention rates. This analysis can inform decisions about enhancing benefits to improve job satisfaction."
      }
    ]
  },
  "counts": {
    "benefits_packages": 15,
    "payment_methods": 5,
    "tax_brackets": 10,
    "job_roles": 50,
    "employees": 200,
    "deductions": 100
  },
  "stats": {
    "employees": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 199,
          "min": "Alice Chen",
          "max": "Zoe Kim"
        },
        "job_role_id": {
          "nulls": 0,
          "distinct": 48,
          "min": 1,
          "max": 50
        },
        "payment_method_id": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "benefits_package_id": {
          "nulls": 0,
          "distinct": 15,
          "min": 1,
          "max": 15
        },
        "hire_date": {
          "nulls": 22,
          "distinct": 171,
          "min": "2015-01-16",
          "max": "2023-12-24"
        }
      }
    },
    "job_roles": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "title": {
          "nulls": 0,
          "distinct": 41
        },
        "salary_min": {
          "nulls": 0,
          "distinct": 50,
          "min": 30010.86,
          "max": 109733.8
        },
        "salary_max": {
          "nulls": 0,
          "distinct": 50,
          "min": 30000.99,
          "max": 119953.41
        },
        "tax_bracket_id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        }
      }
    },
    "payment_methods": {
      "rows": 5,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "method": {
          "nulls": 0,
          "distinct": 5
        }
      }
    },
    "tax_brackets": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "bracket_name": {
          "nulls": 0,
          "distinct": 10
        },
        "percentage": {
          "nulls": 0,
          "distinct": 10,
          "min": 0.02,
          "max": 0.48
        }
      }
    },
    "benefits_packages": {
      "rows": 15,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 15,
          "min": 1,
          "max": 15
        },
        "package_name": {
          "nulls": 0,
          "distinct": 15
        },
        "description": {
          "nulls": 0,
          "distinct": 15
        }
      }
    },
    "deductions": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 83,
          "min": 1,
          "max": 199
        },
        "deduction_type": {
          "nulls": 9,
          "distinct": 78
        },
        "amount": {
          "nulls": 0,
          "distinct": 100,
          "min": 0.04,
          "max": 1994.31
        },
        "effective_date": {
          "nulls": 0,
          "distinct": 99,
          "min": "2015-01-15",
          "max": "2023-12-18"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/benefits_packages.csv",
      "format": "csv",
      "table": "benefits_packages",
      "key": "datasets/compensation-insights/v3/csv/benefits_packages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/benefits_packages.csv",
      "bytes": 2925,
      "sha256": "7dffb7f3fb8bf713b2fecfc972a638fd8f2abe85745c7a441f715e2e076485f0",
      "rows": 15,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payment_methods.csv",
      "format": "csv",
      "table": "payment_methods",
      "key": "datasets/compensation-insights/v3/csv/payment_methods.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/payment_methods.csv",
      "bytes": 116,
      "sha256": "615082bc5f36497b2f0d23d34bfc6b840c8f461fa5723f930ebf20332f111822",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tax_brackets.csv",
      "format": "csv",
      "table": "tax_brackets",
      "key": "datasets/compensation-insights/v3/csv/tax_brackets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/tax_brackets.csv",
      "bytes": 264,
      "sha256": "55bd2e3a4cbc1982f5b42be214d6087ec834a1b1fa973d9813a8afa233f61d37",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/job_roles.csv",
      "format": "csv",
      "table": "job_roles",
      "key": "datasets/compensation-insights/v3/csv/job_roles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/job_roles.csv",
      "bytes": 2226,
      "sha256": "b591f7d7f02378979f69b5e81377c71a965abadf2a449d404712eb06acd4d80a",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/compensation-insights/v3/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/employees.csv",
      "bytes": 6823,
      "sha256": "b478fb90aa2479dd5dce54a9d435b5ac048461c53240d50d1544e81a965fd3d2",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/deductions.csv",
      "format": "csv",
      "table": "deductions",
      "key": "datasets/compensation-insights/v3/csv/deductions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/csv/deductions.csv",
      "bytes": 4199,
      "sha256": "70f265464472d72eff88d8ded4b0dbd055fa126deeb8c0be89ae9cbd09592e62",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "compensation-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/compensation-insights/v3/compensation-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/compensation-insights.json",
      "bytes": 65238,
      "sha256": "f689dc83c2e6dd5362874b8a8ca6dc87d7933fe600d7b3d88ebf17d589e068e5",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/compensation-insights/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/sql/postgres.sql",
      "bytes": 25028,
      "sha256": "81e36bb39c38844f5675048053884286d504b68cf62b2326d0f829b7ec2df483",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/compensation-insights/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/sql/mysql.sql",
      "bytes": 24321,
      "sha256": "19fcf3f5f82b7b5c63914fe764472efc0874f01a0b026551453608d2b65c1393",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/compensation-insights/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/sql/mssql.sql",
      "bytes": 25414,
      "sha256": "7eb090c7c21b631543ad6dee0be71e86f27437eb4d504cf8aa344a28e580cc3b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/compensation-insights/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/sql/sqlite.sql",
      "bytes": 24071,
      "sha256": "373a1af4f86fde77d28b830d43b259691c3f6a39270f6a93df0a388fb053e100",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/compensation-insights/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/prisma/seed.ts",
      "bytes": 51914,
      "sha256": "220e1ee01d108b7327fa2921764266de4841dd379a0d05c254b1d745802e260e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/compensation-insights/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/compensation-insights/v3/django/fixtures.json",
      "bytes": 80590,
      "sha256": "19e12fcffce91b846338209bdd21346f5fc884070fc5d67268c96904db83c883",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765981365,
  "updatedAt": 1788783021349
}
