{
  "format": "dataset-manifest/1",
  "slug": "employee-management-system",
  "version": 1,
  "seed": "employee-management-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "employee-management-system",
    "name": "Employee Lifecycle Insight",
    "tagline": "Employee attributes, job roles, performance reviews, training sessions, leave requests, and department details.",
    "description": "Employees participate in a structured environment where they engage in various job roles, undergo performance reviews, and attend training sessions to enhance their skills. Human resources professionals manage these activities, ensuring that individuals are properly supported and recognized for their contributions within the organization. This operational flow is critical for building a productive workforce and adapting training programs to enhance employee performance. \n\nThe data consists of several interrelated tables: employees, job_roles, performance_reviews, training_sessions, leave_requests, and departments. Each employee record represents an individual within the organization, containing vital information about their job roles and leave requests. Job roles connect to employees, indicating the various functions they perform and the departments they belong to. Performance reviews capture the quality of work and progress through evaluations tied to each employee, while training sessions document the professional development efforts undertaken by them. Leave requests track the time employees take off, providing insight into work-life balance and attendance patterns. \n\nBy examining these tables, users can answer questions about workforce dynamics, such as which job roles are most frequently associated with high performance or which training sessions yield significant improvements in employee reviews. Analyzing leave requests can also highlight patterns in absenteeism or the impact of specific training sessions on attendance. This makes the dataset particularly valuable for practice in data analysis and reporting, providing insights into employee lifecycle management. \n\nIt’s important to note that the data is synthetic, designed to reflect realistic scenarios within HR without compromising real-world privacy.",
    "domain": "hr",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "employee",
      "HR",
      "performance",
      "training",
      "leave",
      "job role"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "employees": {
        "description": "Each row represents an employee in the organization, linking to their job roles and performance reviews.",
        "rows": 300,
        "columns": {
          "employee_id": {
            "kind": "pk",
            "description": "Unique identifier for each employee."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the employee.",
            "nullable": true
          },
          "date_hired": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date the employee was hired.",
            "trend": "growing"
          },
          "job_role_id": {
            "kind": "fk",
            "ref": "job_roles.role_id",
            "description": "The job role this employee occupies.",
            "nullable": true
          }
        }
      },
      "job_roles": {
        "description": "This table contains information about various job roles within the organization, linked to employees.",
        "rows": 50,
        "columns": {
          "role_id": {
            "kind": "pk",
            "description": "Unique identifier for each job role."
          },
          "title": {
            "kind": "enum",
            "values": [
              "Software Engineer",
              "HR Manager",
              "Sales Representative",
              "Data Analyst"
            ],
            "description": "The title of the job role.",
            "nullable": true,
            "when": {
              "column": "department",
              "in": [
                "Engineering",
                "Human Resources"
              ]
            }
          },
          "department": {
            "kind": "enum",
            "values": [
              "Engineering",
              "Human Resources",
              "Sales",
              "Analytics"
            ],
            "description": "The department for the job role."
          }
        }
      },
      "performance_reviews": {
        "description": "Records performance evaluations for employees, linked to their job roles.",
        "rows": 600,
        "columns": {
          "review_id": {
            "kind": "pk",
            "description": "Unique identifier for each performance review."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.employee_id",
            "description": "The employee being reviewed."
          },
          "review_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date of the performance review.",
            "trend": "seasonal"
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "The performance rating given to the employee.",
            "nullable": true
          }
        }
      },
      "training_sessions": {
        "description": "This table captures training sessions attended by employees, linked to their records.",
        "rows": 400,
        "columns": {
          "session_id": {
            "kind": "pk",
            "description": "Unique identifier for each training session."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.employee_id",
            "description": "The employee who attended the training."
          },
          "training_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date of the training session.",
            "nullable": true,
            "when": {
              "column": "training_topic",
              "in": [
                "Leadership",
                "Technical Skills"
              ]
            },
            "trend": "growing"
          },
          "training_topic": {
            "kind": "enum",
            "values": [
              "Leadership",
              "Technical Skills",
              "Compliance",
              "Customer Service"
            ],
            "description": "The topic of the training session.",
            "nullable": true
          }
        }
      },
      "leave_requests": {
        "description": "Records of leave requests made by employees, linked to their job roles.",
        "rows": 300,
        "columns": {
          "request_id": {
            "kind": "pk",
            "description": "Unique identifier for each leave request."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.employee_id",
            "description": "The employee requesting leave."
          },
          "leave_start": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The start date of the leave."
          },
          "leave_end": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The end date of the leave.",
            "nullable": true
          }
        }
      },
      "departments": {
        "description": "This table contains a list of departments within the organization, linked to job roles.",
        "rows": 10,
        "columns": {
          "department_id": {
            "kind": "pk",
            "description": "Unique identifier for each department."
          },
          "name": {
            "kind": "enum",
            "values": [
              "Engineering",
              "Human Resources",
              "Sales",
              "Analytics"
            ],
            "description": "The name of the department."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common job roles in the organization?",
      "How does employee performance correlate with training attendance?",
      "What trends can be observed from the leave requests over the year?",
      "How do different departments compare in terms of employee performance ratings?",
      "What is the average duration of leave taken by employees?"
    ],
    "suggestedQueries": [
      {
        "title": "List all employees and their job roles",
        "sql": "SELECT e.full_name, j.title FROM employees e JOIN job_roles j ON e.job_role_id = j.role_id",
        "dialect": "postgres"
      },
      {
        "title": "Get performance ratings by department",
        "sql": "SELECT d.name, AVG(p.rating) as avg_rating FROM performance_reviews p JOIN employees e ON p.employee_id = e.employee_id JOIN job_roles j ON e.job_role_id = j.role_id JOIN departments d ON j.department = d.name GROUP BY d.name",
        "dialect": "postgres"
      },
      {
        "title": "Count training sessions per employee",
        "sql": "SELECT e.full_name, COUNT(ts.session_id) as training_count FROM employees e LEFT JOIN training_sessions ts ON e.employee_id = ts.employee_id GROUP BY e.full_name",
        "dialect": "postgres"
      },
      {
        "title": "Analyze leave requests over time",
        "sql": "SELECT EXTRACT(MONTH FROM lr.leave_start) as month, COUNT(*) as leave_count FROM leave_requests lr GROUP BY month ORDER BY month",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Analytics",
        "body": "Human resource analysts can use this dataset to explore employee performance metrics, training impact, and leave patterns. This analysis can help inform strategic decisions around employee development and resource allocation."
      },
      {
        "title": "Teaching HR Concepts",
        "body": "Educators can leverage this dataset in classrooms to teach concepts related to employee management, performance appraisal, and workforce analytics. The variety of data allows students to engage in practical exercises and real-world scenarios."
      },
      {
        "title": "ETL Process Development",
        "body": "Data engineers can utilize this dataset to design and test ETL pipelines that aggregate, transform, and load employee data into data warehouses. This practical application aids in honing their skills in data pipeline creation."
      }
    ]
  },
  "counts": {
    "departments": 10,
    "job_roles": 50,
    "employees": 300,
    "leave_requests": 300,
    "performance_reviews": 600,
    "training_sessions": 400
  },
  "stats": {
    "employees": {
      "rows": 300,
      "columns": {
        "employee_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 40,
          "distinct": 256,
          "min": "Alice Andersen",
          "max": "Zoe Kaya"
        },
        "date_hired": {
          "nulls": 0,
          "distinct": 242,
          "min": "2023-01-10",
          "max": "2024-12-29"
        },
        "job_role_id": {
          "nulls": 27,
          "distinct": 50,
          "min": 1,
          "max": 50
        }
      }
    },
    "job_roles": {
      "rows": 50,
      "columns": {
        "role_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "title": {
          "nulls": 25,
          "distinct": 4,
          "min": "Data Analyst",
          "max": "Software Engineer"
        },
        "department": {
          "nulls": 0,
          "distinct": 4,
          "min": "Analytics",
          "max": "Sales"
        }
      }
    },
    "performance_reviews": {
      "rows": 600,
      "columns": {
        "review_id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 261,
          "min": 1,
          "max": 300
        },
        "review_date": {
          "nulls": 0,
          "distinct": 389,
          "min": "2023-01-02",
          "max": "2024-12-29"
        },
        "rating": {
          "nulls": 53,
          "distinct": 5,
          "min": 1,
          "max": 5
        }
      }
    },
    "training_sessions": {
      "rows": 400,
      "columns": {
        "session_id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 219,
          "min": 1,
          "max": 300
        },
        "training_date": {
          "nulls": 215,
          "distinct": 164,
          "min": "2023-01-01",
          "max": "2024-12-30"
        },
        "training_topic": {
          "nulls": 36,
          "distinct": 4,
          "min": "Compliance",
          "max": "Technical Skills"
        }
      }
    },
    "leave_requests": {
      "rows": 300,
      "columns": {
        "request_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 185,
          "min": 1,
          "max": 300
        },
        "leave_start": {
          "nulls": 0,
          "distinct": 240,
          "min": "2023-01-09",
          "max": "2024-12-28"
        },
        "leave_end": {
          "nulls": 29,
          "distinct": 227,
          "min": "2023-01-02",
          "max": "2024-12-24"
        }
      }
    },
    "departments": {
      "rows": 10,
      "columns": {
        "department_id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "name": {
          "nulls": 0,
          "distinct": 3,
          "min": "Analytics",
          "max": "Sales"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/departments.csv",
      "format": "csv",
      "table": "departments",
      "key": "datasets/employee-management-system/v1/csv/departments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/departments.csv",
      "bytes": 145,
      "sha256": "6a7ef660624d7f8e400c5e54cec3d491e552b5741f53da7fbaf2b44cc856550c",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/job_roles.csv",
      "format": "csv",
      "table": "job_roles",
      "key": "datasets/employee-management-system/v1/csv/job_roles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/job_roles.csv",
      "bytes": 1230,
      "sha256": "134805aab17cc267b2c3ff5022357952ad7fe0e587a4dae28460f31eb7a08f51",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/employee-management-system/v1/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/employees.csv",
      "bytes": 8718,
      "sha256": "1753dde68b1fb2a22272d97004246bf65408719ab9ec49462b6dd22ff76a70ec",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leave_requests.csv",
      "format": "csv",
      "table": "leave_requests",
      "key": "datasets/employee-management-system/v1/csv/leave_requests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/leave_requests.csv",
      "bytes": 8834,
      "sha256": "b1514a58c7c45d83f9f1db3166b8dfbb5a5a642d92974230bd2f7ce172855a8b",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/performance_reviews.csv",
      "format": "csv",
      "table": "performance_reviews",
      "key": "datasets/employee-management-system/v1/csv/performance_reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/performance_reviews.csv",
      "bytes": 12875,
      "sha256": "efe27b38e1a008b74909af15f0155d8bcd5d4ad8cb0f8f470eb63812fa9bc765",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/training_sessions.csv",
      "format": "csv",
      "table": "training_sessions",
      "key": "datasets/employee-management-system/v1/csv/training_sessions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/csv/training_sessions.csv",
      "bytes": 10804,
      "sha256": "d738b5b4c3aa978a0a095296f5869fc595158fcd9db8fe7a27ce6bdc77f5649e",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "employee-management-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/employee-management-system/v1/employee-management-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/employee-management-system.json",
      "bytes": 206757,
      "sha256": "e4d003baa8ee134765e06857b479a1276f0c751fe698216213d5b858e9bcf989",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/employee-management-system/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/sql/postgres.sql",
      "bytes": 67366,
      "sha256": "40e3b1468d04ebb822ef817724838ee60396cdf91a093f7d1617507e95aff909",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/employee-management-system/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/sql/mysql.sql",
      "bytes": 66549,
      "sha256": "85664fbf885d0ae4b3f14f5ba5e4ef805b162089bae04a7f04c28b1fe8d41f5a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/employee-management-system/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/sql/mssql.sql",
      "bytes": 69347,
      "sha256": "ead16285278b7e253d58d358c7e37e23a3b5d46445abbc932a77a68f806bf3eb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/employee-management-system/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/sql/sqlite.sql",
      "bytes": 66311,
      "sha256": "e3ada7b360df2e3a237a63f4c5d2dd4a97eb57cebaa2de53b81d809eb1babb37",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/employee-management-system/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/prisma/seed.ts",
      "bytes": 161916,
      "sha256": "ae994b5f1dcbfd2d7136e8d5e75301c10ef6c470f8879ed33ae51cd8145e1fa2",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/employee-management-system/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-management-system/v1/django/fixtures.json",
      "bytes": 273016,
      "sha256": "74a5e56d95481059fa04aa71911e0e971c47fe082c5926e5b572436e9256ad53",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734103910,
  "updatedAt": 1788734103910
}
