{
  "format": "dataset-manifest/1",
  "slug": "human-resources-ledger",
  "version": 1,
  "seed": "human-resources-ledger:1",
  "spec": {
    "format": "dataset/1",
    "slug": "human-resources-ledger",
    "name": "Human Resources Ledger",
    "tagline": "A synthetic dataset for managing HR operations.",
    "description": "Employees drive productivity and innovation within a dynamic organization, ensuring that operations run smoothly. The complexities of payroll management intertwine with attendance tracking, invoice processing, and monitoring sales orders, all vital components for maximizing workforce efficiency. The data captures a snapshot of how these elements interact, revolving mainly around full-time staff with some entries for seasonal or temporary employees, which showcase the fluctuations in workforce dynamics. This structure reflects the organization’s rhythm, characterized by regular payroll cycles and consistent attendance patterns. \n\nThe hr_ledger table serves as the core repository for all the records. Each row represents individual employee records that include critical metrics such as payroll details, attendance logs, and associated sales orders. By linking attendance data with payroll entries, it becomes possible to draw insights into patterns like absenteeism and its impact on overall payroll costs. This allows for analysis of productivity trends over specific periods. Additionally, the data can drive inquiries into sales performance relative to workforce availability, offering a comprehensive view of how staffing levels affect revenue generation. \n\nAnalysts can explore questions such as: How does employee attendance correlate with payroll expenses? What is the breakdown of costs associated with seasonal workers versus full-time staff? By practicing on this data, developers can enhance their skills in relational database management, data analysis, and reporting, all while navigating the intricacies that come with human resource data. Keep in mind, the information within this dataset is synthetic, crafted to mimic real-world HR scenarios while providing a safe environment for experimentation.",
    "domain": "hr",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "HR",
      "employee management",
      "payroll",
      "attendance",
      "invoices",
      "sales orders",
      "synthetic data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "hr_ledger": {
        "description": "This table contains records of employee management activities, linking payroll, attendance, invoices, and sales orders. Each row represents an employee's data across various metrics, capturing the dynamics of workforce management in a ledger format.",
        "rows": 500,
        "columns": {
          "employee_id": {
            "kind": "pk",
            "description": "A unique identifier for each employee."
          },
          "first_name": {
            "kind": "firstName",
            "description": "The first name of the employee."
          },
          "last_name": {
            "kind": "lastName",
            "description": "The last name of the employee."
          },
          "position": {
            "kind": "words",
            "description": "The job title or position held by the employee."
          },
          "salary": {
            "kind": "decimal",
            "min": 30000,
            "max": 120000,
            "scale": 2,
            "description": "The annual salary of the employee."
          },
          "attendance_days": {
            "kind": "int",
            "min": 0,
            "max": 365,
            "description": "The number of days the employee was present at work in a year."
          },
          "invoices_processed": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "The number of invoices processed by the employee."
          },
          "sales_orders": {
            "kind": "int",
            "min": 0,
            "max": 50,
            "description": "The number of sales orders handled by the employee."
          },
          "employment_type": {
            "kind": "enum",
            "values": [
              "full-time",
              "part-time",
              "temporary"
            ],
            "description": "The type of employment of the employee."
          },
          "hire_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2023-12-31",
            "description": "The date when the employee was hired.",
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "inactive",
              "terminated"
            ],
            "description": "The current employment status of the employee."
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the average salary of full-time employees?",
      "How many invoices does each employee process on average?",
      "What is the attendance trend throughout the year?",
      "What percentage of employees are currently active?",
      "How does the number of sales orders relate to employee status?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Employee Data",
        "sql": "SELECT first_name, last_name, position FROM hr_ledger WHERE status = 'active';",
        "dialect": "postgres"
      },
      {
        "title": "Average Salary Calculation",
        "sql": "SELECT AVG(salary) as average_salary FROM hr_ledger WHERE employment_type = 'full-time';",
        "dialect": "postgres"
      },
      {
        "title": "Attendance Grouping",
        "sql": "SELECT hire_date, SUM(attendance_days) as total_attendance FROM hr_ledger GROUP BY hire_date;",
        "dialect": "postgres"
      },
      {
        "title": "Sales Orders by Employment Type",
        "sql": "SELECT employment_type, SUM(sales_orders) as total_sales FROM hr_ledger GROUP BY employment_type;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Data Analysis",
        "body": "HR analysts can use this dataset to practice various SQL queries related to employee management, helping them understand trends in workforce data, such as attendance and payroll analysis."
      },
      {
        "title": "Teaching SQL Concepts",
        "body": "Educators can utilize this dataset to teach students about SQL and database management by providing practical exercises that involve employee data, enhancing their learning experience with real-world scenarios."
      },
      {
        "title": "Performance Tracking",
        "body": "Managers can analyze the data to track employee performance metrics, such as the number of invoices processed and sales orders handled, enabling better decision-making regarding workforce efficiency."
      }
    ]
  },
  "counts": {
    "hr_ledger": 500
  },
  "stats": {
    "hr_ledger": {
      "rows": 500,
      "columns": {
        "employee_id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "first_name": {
          "nulls": 0,
          "distinct": 79,
          "min": "Alice",
          "max": "Zoe"
        },
        "last_name": {
          "nulls": 0,
          "distinct": 80,
          "min": "Adams",
          "max": "Zhang"
        },
        "position": {
          "nulls": 0,
          "distinct": 500
        },
        "salary": {
          "nulls": 0,
          "distinct": 500,
          "min": 30158.14,
          "max": 119908.02
        },
        "attendance_days": {
          "nulls": 0,
          "distinct": 276,
          "min": 1,
          "max": 365
        },
        "invoices_processed": {
          "nulls": 0,
          "distinct": 101,
          "min": 0,
          "max": 100
        },
        "sales_orders": {
          "nulls": 0,
          "distinct": 51,
          "min": 0,
          "max": 50
        },
        "employment_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "full-time",
          "max": "temporary"
        },
        "hire_date": {
          "nulls": 0,
          "distinct": 466,
          "min": "2010-01-20",
          "max": "2023-12-28"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "active",
          "max": "terminated"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/hr_ledger.csv",
      "format": "csv",
      "table": "hr_ledger",
      "key": "datasets/human-resources-ledger/v1/csv/hr_ledger.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/csv/hr_ledger.csv",
      "bytes": 46472,
      "sha256": "7063054b856b6ae3b738656ef591176c74be473983bbd5fceefc117147ec1a2c",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "human-resources-ledger.json",
      "format": "json",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/human-resources-ledger.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/human-resources-ledger.json",
      "bytes": 177812,
      "sha256": "1f6d45fe114641c00f45964330a54e862142bf7be72b7174d1c2fdd421e6e01c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/sql/postgres.sql",
      "bytes": 61813,
      "sha256": "28d98b501f33ab771d66163e8e9b9f026c436c700696f84b0b03e39080bb7fe0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/sql/mysql.sql",
      "bytes": 61682,
      "sha256": "6d38edd1d32b3a8211393f00de8a6d55d6b60880a9bc16d5be56c7eda34b1860",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/sql/mssql.sql",
      "bytes": 64750,
      "sha256": "10724ef025638463f4b25f2ac601c0fd97859f1ee2d6540fc236921ea58c1d6a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/sql/sqlite.sql",
      "bytes": 61643,
      "sha256": "5c92c5eb31a12e84a64c9f737fb03c601f63417f74da9c75bd05834468750826",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/prisma/seed.ts",
      "bytes": 137579,
      "sha256": "35408912536422ed1c8183bebf4b323d8b6b183500b3f4a310c0b75e2bbe5243",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/human-resources-ledger/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-ledger/v1/django/fixtures.json",
      "bytes": 196844,
      "sha256": "2cd9947083e843baf01415969e7690d890f2cda2ecb95521605a302261a59b9f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768189915,
  "updatedAt": 1788768189915
}
