{
  "format": "dataset-manifest/1",
  "slug": "financial-operations-ledger",
  "version": 2,
  "seed": "financial-operations-ledger:1",
  "spec": {
    "format": "dataset/1",
    "slug": "financial-operations-ledger",
    "name": "Financial Operations Ledger",
    "tagline": "Customers, products, transactions, orders, and vendors data from ongoing financial exchanges in fintech.",
    "description": "Customers engage with various financial products, purchasing services that result in a series of transactions. Every transaction records essential details such as the time, amount, and related product, allowing the business to analyze customer behavior and product performance. Orders reflect the requests made by customers for specific products, detailing the quantities and associated costs, while vendors provide the necessary products and services that fulfill these orders. This interconnectedness highlights the flow of financial operations and helps maintain a seamless service experience for customers.\n\nThe 'customers' table captures individual client information, including their engagement level and transaction history. Each entry can be linked to multiple 'transactions' that reflect the financial exchanges made, providing insight into customer spending patterns. The 'products' table lists various offerings available in the marketplace, showcasing descriptions and pricing. This table connects to transactions to reveal which products are most popular and how customers interact with different offerings. 'Orders' detail the specific requests from customers, while 'vendors' supply the products sold, linking the offerings back to the source.\n\nAnalyzing this dataset allows developers to explore numerous questions: How do customer behaviors vary across different financial products? What are the trends in transactions over time? Which products generate the most revenue, and how do vendor relationships influence inventory management? Practicing with this synthetic dataset provides a rich environment to develop skills in relational database management, data analysis, and financial reporting, simulating real-world scenarios faced by fintech companies.",
    "domain": "fintech",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "financial transactions",
      "customer engagement",
      "products",
      "orders",
      "vendors",
      "ledger",
      "fintech"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "This table contains unique customer records, detailing their engagement with financial products. Each customer is linked to their transactions and orders.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the customer.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The email address of the customer.",
            "nullable": true
          },
          "signup_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date when the customer signed up."
          }
        }
      },
      "products": {
        "description": "This table captures the financial products offered, linking them to the transactions made by customers. Each entry details the nature and category of the product.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "product_name": {
            "kind": "productName",
            "description": "The name of the financial product.",
            "nullable": true
          },
          "category": {
            "kind": "enum",
            "values": [
              "loans",
              "investments",
              "savings",
              "insurance"
            ],
            "description": "The category of the financial product."
          },
          "price": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "description": "The price of the product.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "transactions": {
        "description": "This table records each transaction made by customers, linking them to specific products. It reflects the dynamic nature of customer engagement.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "The ID of the customer making the transaction."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "The ID of the product being purchased."
          },
          "transaction_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "dayProfile": "business",
            "description": "The date and time of the transaction."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 5000,
            "scale": 2,
            "description": "The amount of money involved in the transaction.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "orders": {
        "description": "This table outlines the orders placed by customers, including their statuses and timestamps. It links back to the transactions and customers.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each order."
          },
          "transaction_id": {
            "kind": "fk",
            "ref": "transactions.id",
            "description": "The ID of the transaction linked to the order."
          },
          "order_status": {
            "kind": "enum",
            "values": [
              "pending",
              "completed",
              "cancelled"
            ],
            "description": "The current status of the order."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "dayProfile": "business",
            "description": "The date and time when the order was placed.",
            "nullable": true,
            "when": {
              "column": "order_status",
              "in": [
                "completed",
                "cancelled"
              ]
            }
          }
        }
      },
      "vendors": {
        "description": "This table tracks vendors supplying products, linking them to the products offered. Each vendor's performance can be assessed through this connection.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vendor."
          },
          "vendor_name": {
            "kind": "company",
            "description": "The name of the vendor.",
            "nullable": true
          },
          "contact_email": {
            "kind": "email",
            "from": "vendor_name",
            "description": "The email address for contacting the vendor.",
            "nullable": true
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "The ID of the product supplied by the vendor."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "timestamped",
      "monetary",
      "categorical"
    ],
    "analysisQuestions": [
      "What products are most frequently purchased by customers?",
      "How do transaction amounts vary across different product categories?",
      "What percentage of orders are cancelled each month?",
      "When do most customers sign up for new financial products?",
      "How does vendor performance correlate with product sales?"
    ],
    "suggestedQueries": [
      {
        "title": "Fetch all transactions for a specific customer",
        "sql": "SELECT * FROM transactions WHERE customer_id = 1;",
        "dialect": "postgres"
      },
      {
        "title": "Count of transactions by product category",
        "sql": "SELECT p.category, COUNT(t.id) FROM transactions t JOIN products p ON t.product_id = p.id GROUP BY p.category;",
        "dialect": "postgres"
      },
      {
        "title": "Monthly order status summary",
        "sql": "SELECT DATE_TRUNC('month', o.order_date) AS month, o.order_status, COUNT(*) FROM orders o GROUP BY month, o.order_status;",
        "dialect": "postgres"
      },
      {
        "title": "Average transaction amount by product",
        "sql": "SELECT p.product_name, AVG(t.amount) FROM transactions t JOIN products p ON t.product_id = p.id GROUP BY p.product_name;",
        "dialect": "postgres"
      },
      {
        "title": "Yearly customer sign-up trends",
        "sql": "SELECT EXTRACT(YEAR FROM c.signup_date) AS year, COUNT(*) FROM customers c GROUP BY year;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Analyst",
        "body": "A financial analyst can utilize this dataset to evaluate customer spending patterns and product popularity over time. By querying transaction amounts and analyzing order statuses, they can identify trends and make data-driven decisions to optimize product offerings."
      },
      {
        "title": "Database Instructor",
        "body": "An instructor teaching SQL can use this dataset to demonstrate complex joins and aggregations. Students can practice writing queries that span multiple tables, helping them understand real-world applications of relational databases in financial contexts."
      },
      {
        "title": "Product Manager",
        "body": "Product managers can leverage the insights from this dataset to assess how different financial products are performing in the market. They can analyze vendor performance and customer feedback, guiding future product development and marketing strategies."
      },
      {
        "title": "Data Scientist",
        "body": "A data scientist can use this dataset to build predictive models based on customer behavior. By analyzing transaction trends and order fulfillment rates, they can develop algorithms to forecast sales and improve inventory management."
      }
    ]
  },
  "counts": {
    "customers": 200,
    "products": 100,
    "transactions": 500,
    "orders": 300,
    "vendors": 50
  },
  "stats": {
    "customers": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 23,
          "distinct": 176,
          "min": "Alice Baker",
          "max": "Zara Zhang"
        },
        "email": {
          "nulls": 40,
          "distinct": 160
        },
        "signup_date": {
          "nulls": 0,
          "distinct": 191,
          "min": "2020-01-14",
          "max": "2022-12-31"
        }
      }
    },
    "products": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "product_name": {
          "nulls": 9,
          "distinct": 81,
          "min": "Classic Bottle",
          "max": "Wireless Toolkit"
        },
        "category": {
          "nulls": 0,
          "distinct": 4,
          "min": "insurance",
          "max": "savings"
        },
        "price": {
          "nulls": 13,
          "distinct": 87,
          "min": 101.21,
          "max": 9836.55
        }
      }
    },
    "transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 189,
          "min": 2,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 09:25:37",
          "max": "2022-12-31 10:06:58"
        },
        "amount": {
          "nulls": 47,
          "distinct": 453,
          "min": 10,
          "max": 4969.66
        }
      }
    },
    "orders": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "transaction_id": {
          "nulls": 0,
          "distinct": 219,
          "min": 3,
          "max": 500
        },
        "order_status": {
          "nulls": 0,
          "distinct": 3,
          "min": "cancelled",
          "max": "pending"
        },
        "order_date": {
          "nulls": 106,
          "distinct": 194,
          "min": "2022-01-02 17:23:29",
          "max": "2022-12-31 16:12:36"
        }
      }
    },
    "vendors": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "vendor_name": {
          "nulls": 5,
          "distinct": 42,
          "min": "Atlas Energy",
          "max": "Willow Works"
        },
        "contact_email": {
          "nulls": 9,
          "distinct": 40
        },
        "product_id": {
          "nulls": 0,
          "distinct": 38,
          "min": 2,
          "max": 100
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/financial-operations-ledger/v2/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/csv/customers.csv",
      "bytes": 9161,
      "sha256": "534768738ccaef5fe747619da74241f2ea3e64dc4c7ae82a1a0abf1c2db0bcae",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/financial-operations-ledger/v2/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/csv/products.csv",
      "bytes": 3413,
      "sha256": "197da9c7b7b58a30d5a88e504b26cfa2808768c1712d5516c65cbf7f14a47167",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/financial-operations-ledger/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/csv/transactions.csv",
      "bytes": 19049,
      "sha256": "c3d621c76f272a165a3e302cf093c0650fb678a7fc07422d42c0bc55248b13c2",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/financial-operations-ledger/v2/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/csv/orders.csv",
      "bytes": 9344,
      "sha256": "f199d57d128ffcbe28ff5767a8da34a3a9ce6df0c012676a78b3fea7c30d2034",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/financial-operations-ledger/v2/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/csv/vendors.csv",
      "bytes": 2143,
      "sha256": "d2f728158d1fbf62e44bc09237b2ad011ce3b4a5df6ae8624394e8f489066b92",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "financial-operations-ledger.json",
      "format": "json",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/financial-operations-ledger.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/financial-operations-ledger.json",
      "bytes": 160124,
      "sha256": "548ff6efc3ad4d61367f80c3a142436d856ff50dfc6a8948786e03123e5014a5",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/sql/postgres.sql",
      "bytes": 61372,
      "sha256": "2e80c0298d593771b943812224d059e8af510e09fc793d471b8883198320870a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/sql/mysql.sql",
      "bytes": 60819,
      "sha256": "5dcbc83eb4dbf97bf63096205d8863f74656eda2447afc0ccd0e110fd6bb11f8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/sql/mssql.sql",
      "bytes": 62945,
      "sha256": "7cf1f8d0a742d6c1d2e4e977d22cc19f629c827c89efcb68c0d08ad363a45be5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/sql/sqlite.sql",
      "bytes": 60603,
      "sha256": "d6a7f72e9062e3c91fb07998772ad38bc04de55578dd56e5ecbc39c6d3a108d0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/prisma/seed.ts",
      "bytes": 133644,
      "sha256": "e29b5faf89147645c13396b87954ba185ea9a95d108dcf55f4843ceef2e494ad",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/financial-operations-ledger/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-operations-ledger/v2/django/fixtures.json",
      "bytes": 209962,
      "sha256": "0f505755185f82bd223452315eb3b197c444208c942c0eaaf0434fb2fea26405",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765926907,
  "updatedAt": 1788778762668
}
