{
  "format": "dataset-manifest/1",
  "slug": "employee-attendance-and-leave-management",
  "version": 1,
  "seed": "employee-attendance-and-leave-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "employee-attendance-and-leave-management",
    "name": "Workplace Attendance Insights",
    "tagline": "Employee attendance records, leave balances, and overtime details from a human resources dataset.",
    "description": "Human resources teams manage employee attendance and leave to enhance productivity and satisfaction. This dataset captures critical aspects of attendance management including leave balances, overtime hours, and attendance corrections. By examining this data, HR professionals can identify patterns related to employee attendance, leave requests, and overtime approvals. The dataset reflects the operational realities of workplace attendance, such as regular work shifts for most employees and occasional leave or overtime requests. Additionally, it highlights anomalies like last-minute leave requests or unexpected overtime, which are essential for accurate payroll processing. As this dataset is synthetic, it serves as a practical resource for developers looking to practice SQL queries or seed ORM frameworks with realistic employee attendance data.",
    "domain": "hr",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "attendance",
      "leave management",
      "overtime",
      "employee records",
      "HR data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "employee_attendance": {
        "description": "Each row represents an employee's attendance record, detailing their leave balances, overtime hours, and attendance corrections. This table allows for tracking of individual employee work patterns and discrepancies.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each attendance record."
          },
          "employee_id": {
            "kind": "int",
            "min": 1,
            "max": 1000,
            "description": "Identifier for the employee."
          },
          "leave_balance": {
            "kind": "decimal",
            "min": 0,
            "max": 30,
            "scale": 2,
            "description": "Available leave days for the employee.",
            "nullable": true
          },
          "overtime_hours": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Total hours of approved overtime worked by the employee.",
            "nullable": true
          },
          "attendance_corrections": {
            "kind": "int",
            "min": 0,
            "max": 10,
            "description": "Number of corrections made to attendance records.",
            "nullable": true
          },
          "request_type": {
            "kind": "enum",
            "values": [
              "leave",
              "overtime",
              "correction"
            ],
            "weights": [
              0.7,
              0.2,
              0.1
            ],
            "description": "Type of request made by the employee."
          },
          "request_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the leave or overtime request was made.",
            "nullable": true,
            "when": {
              "column": "request_type",
              "in": [
                "leave",
                "overtime"
              ]
            },
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "approved",
              "pending",
              "rejected"
            ],
            "weights": [
              0.6,
              0.3,
              0.1
            ],
            "description": "Current status of the leave or overtime request."
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the average leave balance across employees?",
      "How many hours of overtime are recorded on average per employee?",
      "What percentage of leave requests are approved compared to those that are pending or rejected?",
      "Which types of requests are most common among employees?",
      "Are there particular times of the year when attendance corrections are more frequent?"
    ],
    "suggestedQueries": [
      {
        "title": "Select all attendance records",
        "sql": "SELECT * FROM employee_attendance;",
        "dialect": "postgres"
      },
      {
        "title": "Count leave requests by type",
        "sql": "SELECT request_type, COUNT(*) FROM employee_attendance GROUP BY request_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average overtime hours by request status",
        "sql": "SELECT status, AVG(overtime_hours) FROM employee_attendance GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Find employees with the most attendance corrections",
        "sql": "SELECT employee_id, COUNT(attendance_corrections) FROM employee_attendance GROUP BY employee_id ORDER BY COUNT(attendance_corrections) DESC LIMIT 10;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Analytics Dashboard",
        "body": "HR analysts can utilize this dataset to create informative dashboards that visualize employee attendance trends, leave balances, and overtime hours. This dashboard can help identify patterns and anomalies in attendance, allowing for proactive management of workforce resources."
      },
      {
        "title": "Payroll Management System",
        "body": "Payroll administrators can integrate this data into their systems to ensure accurate payroll processing. By analyzing leave balances and overtime hours, they can calculate pay accurately, considering all approved leaves and overtime worked by employees."
      },
      {
        "title": "Employee Performance Evaluation",
        "body": "Managers can use this dataset to evaluate employee performance based on attendance and leave records. This information can be critical in assessing employee reliability and work ethic during performance reviews, helping to inform decisions on promotions or additional responsibilities."
      }
    ]
  },
  "counts": {
    "employee_attendance": 500
  },
  "stats": {
    "employee_attendance": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 401,
          "min": 4,
          "max": 998
        },
        "leave_balance": {
          "nulls": 47,
          "distinct": 429,
          "min": 0.15,
          "max": 29.95
        },
        "overtime_hours": {
          "nulls": 48,
          "distinct": 442,
          "min": 0.12,
          "max": 99.9
        },
        "attendance_corrections": {
          "nulls": 55,
          "distinct": 11,
          "min": 0,
          "max": 10
        },
        "request_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "correction",
          "max": "overtime"
        },
        "request_date": {
          "nulls": 55,
          "distinct": 327,
          "min": "2022-01-01",
          "max": "2023-12-31"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "approved",
          "max": "rejected"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/employee_attendance.csv",
      "format": "csv",
      "table": "employee_attendance",
      "key": "datasets/employee-attendance-and-leave-management/v1/csv/employee_attendance.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/csv/employee_attendance.csv",
      "bytes": 23621,
      "sha256": "a2525b3e3855c5095e9c130ef10cec03c37e710070d0b6c908db98a0bc32a8ca",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "employee-attendance-and-leave-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/employee-attendance-and-leave-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/employee-attendance-and-leave-management.json",
      "bytes": 122646,
      "sha256": "a764e595f682775e82812468f4c7687c38aff0a280bf12f9d9f64d365443f29f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/sql/postgres.sql",
      "bytes": 35026,
      "sha256": "420afad625ae512a611f5c7935479dde5e6cf6a1a9fe16c735a1931c54734ed4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/sql/mysql.sql",
      "bytes": 34897,
      "sha256": "70148135369a974f55a185b72be800c9c2a437af6240a70ae5f39edff70de6f7",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/sql/mssql.sql",
      "bytes": 36427,
      "sha256": "9c02892607b2e10629ceba8b027ca51e9bf8666e22b0b09d1b2dbac1a33c417f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/sql/sqlite.sql",
      "bytes": 34875,
      "sha256": "56c106897c576191ff983b369149604c2d98fd54f1d977789e749bb76257bf5b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/prisma/seed.ts",
      "bytes": 95323,
      "sha256": "70f068179c09115210070a2f3cb5bf37616691e6ad53ddc4b7e9688aeb6f2c55",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/employee-attendance-and-leave-management/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/employee-attendance-and-leave-management/v1/django/fixtures.json",
      "bytes": 152043,
      "sha256": "97fcdf24f7cc08ec80904cfd15838b915d96a378007b2a8f12f22a7a3cd41667",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734234492,
  "updatedAt": 1788734234492
}
