{
  "format": "dataset-manifest/1",
  "slug": "financial-transactions-overview",
  "version": 3,
  "seed": "financial-transactions-overview:1",
  "spec": {
    "format": "dataset/1",
    "slug": "financial-transactions-overview",
    "name": "Financial Transactions Overview",
    "tagline": "Customer transactions, bill payments, investments, and support data from a banking environment.",
    "description": "Banks meticulously track the flow of money across various channels, which is crucial for customer interactions and financial operations. This dataset models customer transactions, bill payments, investment activities, and the support provided to clients, highlighting the dynamic nature of banking services. The tables include customer profiles, transaction records, bill payments, investment entries, customer support interactions, and transaction types. Each table is linked through foreign keys, allowing for detailed analysis of customer behavior and financial activities. Users can explore trends in routine deposits and withdrawals, as well as identify patterns in complex investment activities, which tend to cluster around specific financial periods. This synthetic dataset is ideal for practicing SQL queries or for teaching purposes, providing a realistic framework for understanding banking operations and transaction management.",
    "domain": "banking",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "banking",
      "transactions",
      "customers",
      "investments",
      "bill payments",
      "financial operations",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "This table holds customer information, including their unique IDs and contact details. Each row represents a unique customer.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the customer."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The customer's email address."
          },
          "phone": {
            "kind": "phone",
            "description": "The customer's phone number.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the customer was created in the system.",
            "dayProfile": "business"
          }
        }
      },
      "transactions": {
        "description": "Records of all transactions made by customers, including deposits and withdrawals. Each transaction is linked to a customer.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer making the transaction."
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 10000,
            "scale": 2,
            "description": "The amount of money involved in the transaction.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "deposit",
              "withdrawal"
            ],
            "description": "The type of transaction performed.",
            "weights": [
              7,
              3
            ]
          },
          "transaction_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date and time when the transaction occurred.",
            "nullable": true,
            "when": {
              "column": "transaction_type",
              "in": [
                "deposit",
                "withdrawal"
              ]
            },
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      },
      "bill_payments": {
        "description": "This table records all bill payments made by customers, detailing amounts and payment dates.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each bill payment."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer making the payment."
          },
          "amount": {
            "kind": "decimal",
            "min": 5,
            "max": 5000,
            "scale": 2,
            "description": "The amount paid in the bill payment.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "bill_type": {
            "kind": "enum",
            "values": [
              "utility",
              "credit_card",
              "mortgage"
            ],
            "description": "Type of bill being paid.",
            "weights": [
              5,
              4,
              1
            ]
          },
          "payment_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the bill payment was made.",
            "nullable": true,
            "when": {
              "column": "bill_type",
              "in": [
                "utility",
                "credit_card",
                "mortgage"
              ]
            },
            "dayProfile": "waking"
          }
        }
      },
      "investments": {
        "description": "Records of customer investment activities, including details of amounts and investment types.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each investment entry."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer making the investment."
          },
          "amount": {
            "kind": "decimal",
            "min": 100,
            "max": 50000,
            "scale": 2,
            "description": "The amount invested by the customer.",
            "nullable": true,
            "distribution": "heavy-tail"
          },
          "investment_type": {
            "kind": "enum",
            "values": [
              "stocks",
              "bonds",
              "mutual_funds"
            ],
            "description": "Type of investment made.",
            "weights": [
              5,
              2,
              1
            ]
          },
          "investment_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the investment was made.",
            "nullable": true,
            "when": {
              "column": "investment_type",
              "in": [
                "stocks",
                "bonds",
                "mutual_funds"
              ]
            },
            "dayProfile": "business"
          }
        }
      },
      "customer_support": {
        "description": "This table captures interactions with customer support, detailing the nature of inquiries and resolutions.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each support interaction."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer interacting with support."
          },
          "issue_type": {
            "kind": "enum",
            "values": [
              "account",
              "transaction",
              "technical"
            ],
            "description": "Type of issue reported by the customer.",
            "weights": [
              6,
              2,
              1
            ]
          },
          "resolution_status": {
            "kind": "enum",
            "values": [
              "resolved",
              "pending"
            ],
            "description": "Current status of the issue resolution.",
            "weights": [
              9,
              1
            ]
          },
          "interaction_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the support interaction occurred.",
            "nullable": true,
            "when": {
              "column": "resolution_status",
              "in": [
                "resolved",
                "pending"
              ]
            },
            "dayProfile": "business"
          }
        }
      },
      "transaction_types": {
        "description": "Categorizes different transaction types for better reporting and analysis.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction type."
          },
          "name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the transaction type.",
            "pool": [
              "deposit",
              "withdrawal",
              "transfer",
              "payment",
              "refund",
              "purchase",
              "fee",
              "interest",
              "loan",
              "credit",
              "debit",
              "charge",
              "investment",
              "dividend",
              "withdraw",
              "remittance",
              "exchange",
              "balance",
              "statement",
              "adjustment",
              "settlement"
            ]
          },
          "description": {
            "kind": "sentence",
            "min": 10,
            "max": 40,
            "description": "A brief description of what the transaction type entails."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "nullable",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the trend of investment activities over the years?",
      "How do bill payment types vary among different customer segments?",
      "Which transaction type has the highest average amount?",
      "What is the common resolution status for customer support inquiries?",
      "How does customer interaction frequency relate to transaction volume?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all transactions for a specific customer.",
        "sql": "SELECT * FROM transactions WHERE customer_id = ?;",
        "dialect": "postgres"
      },
      {
        "title": "Calculate total bill payments made by each customer.",
        "sql": "SELECT customer_id, SUM(amount) as total_bill_payments FROM bill_payments GROUP BY customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find the average amount of investments made each year.",
        "sql": "SELECT EXTRACT(YEAR FROM investment_date) as year, AVG(amount) as average_investment FROM investments GROUP BY year;",
        "dialect": "postgres"
      },
      {
        "title": "Get the count of support interactions by issue type.",
        "sql": "SELECT issue_type, COUNT(*) as interaction_count FROM customer_support GROUP BY issue_type;",
        "dialect": "postgres"
      },
      {
        "title": "List all transactions and their corresponding transaction types.",
        "sql": "SELECT t.*, tt.name as transaction_type_name FROM transactions t JOIN transaction_types tt ON t.transaction_type = tt.id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "SQL Training",
        "body": "Educators can use this dataset to teach SQL querying techniques, allowing students to practice with real-world banking data. The variety of tables and relationships helps develop skills in joins, aggregations, and data analysis."
      },
      {
        "title": "Data Analysis Projects",
        "body": "Data analysts can leverage this dataset to explore customer behavior and transaction patterns. By analyzing trends in investments and bill payments, they can uncover insights that inform banking strategies and customer engagement."
      },
      {
        "title": "System Testing",
        "body": "Software developers can utilize this dataset as a test fixture for banking applications. By simulating transactions and customer interactions, they can ensure the robustness and reliability of their systems under realistic conditions."
      },
      {
        "title": "Financial Reporting",
        "body": "Financial professionals can use this dataset to create reports on transaction volumes and customer activity. This information is essential for evaluating the bank's performance and making strategic decisions."
      }
    ]
  },
  "counts": {
    "customers": 200,
    "bill_payments": 500,
    "customer_support": 400,
    "investments": 300,
    "transaction_types": 6,
    "transactions": 1000
  },
  "stats": {
    "customers": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 198,
          "min": "Alice Diaz",
          "max": "Zoe Chen"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "phone": {
          "nulls": 20,
          "distinct": 175
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-05 17:49:51",
          "max": "2023-12-27 23:03:06"
        }
      }
    },
    "transactions": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 198,
          "min": 1,
          "max": 200
        },
        "amount": {
          "nulls": 103,
          "distinct": 896,
          "min": 1,
          "max": 9999.36
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "deposit",
          "max": "withdrawal"
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 1000,
          "min": "2020-01-04 12:48:10",
          "max": "2023-12-31 18:57:02"
        }
      }
    },
    "bill_payments": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 182,
          "min": 1,
          "max": 199
        },
        "amount": {
          "nulls": 46,
          "distinct": 453,
          "min": 5,
          "max": 4991.55
        },
        "bill_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "credit_card",
          "max": "utility"
        },
        "payment_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2020-01-05 04:15:52",
          "max": "2023-12-25 10:42:58"
        }
      }
    },
    "investments": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 155,
          "min": 1,
          "max": 200
        },
        "amount": {
          "nulls": 27,
          "distinct": 272,
          "min": 100,
          "max": 49358.67
        },
        "investment_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "bonds",
          "max": "stocks"
        },
        "investment_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-01 15:25:15",
          "max": "2023-12-15 11:07:03"
        }
      }
    },
    "customer_support": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 171,
          "min": 2,
          "max": 200
        },
        "issue_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "account",
          "max": "transaction"
        },
        "resolution_status": {
          "nulls": 0,
          "distinct": 2,
          "min": "pending",
          "max": "resolved"
        },
        "interaction_date": {
          "nulls": 0,
          "distinct": 400,
          "min": "2020-01-14 09:18:02",
          "max": "2023-12-27 14:27:31"
        }
      }
    },
    "transaction_types": {
      "rows": 6,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 6,
          "min": 1,
          "max": 6
        },
        "name": {
          "nulls": 0,
          "distinct": 6
        },
        "description": {
          "nulls": 0,
          "distinct": 6
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/financial-transactions-overview/v3/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/customers.csv",
      "bytes": 15021,
      "sha256": "da396f25b3b343d499c3f2288f154500df02ce3a49c74d32e771fff5cc3d9948",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/bill_payments.csv",
      "format": "csv",
      "table": "bill_payments",
      "key": "datasets/financial-transactions-overview/v3/csv/bill_payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/bill_payments.csv",
      "bytes": 22347,
      "sha256": "27084e9dc00e38b40b38c6397747666509b36c19cf66069d2fb3d7383660f7a9",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customer_support.csv",
      "format": "csv",
      "table": "customer_support",
      "key": "datasets/financial-transactions-overview/v3/csv/customer_support.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/customer_support.csv",
      "bytes": 18492,
      "sha256": "efd4df108e546c32e19c06454780438d57cf7e3c248feda48c44bc88005a9534",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/investments.csv",
      "format": "csv",
      "table": "investments",
      "key": "datasets/financial-transactions-overview/v3/csv/investments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/investments.csv",
      "bytes": 12949,
      "sha256": "9000fd17bfb350ba2046229f2baf18010855e1f951a05b2900f53aea62a6bc32",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transaction_types.csv",
      "format": "csv",
      "table": "transaction_types",
      "key": "datasets/financial-transactions-overview/v3/csv/transaction_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/transaction_types.csv",
      "bytes": 483,
      "sha256": "41d681449aec7de4b782eb5a597adfe02a6fca388dad26b4036f169a7c4827e5",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/financial-transactions-overview/v3/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/csv/transactions.csv",
      "bytes": 44283,
      "sha256": "0595f18c43c9cee78fb7af42a8886f4e16450583c3501ceab36c015ef5c6baaf",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "financial-transactions-overview.json",
      "format": "json",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/financial-transactions-overview.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/financial-transactions-overview.json",
      "bytes": 398271,
      "sha256": "e87131f5d4805cf198f51eb6b6d386bb4a36e8d234370b4c4525beb52535295c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/sql/postgres.sql",
      "bytes": 153554,
      "sha256": "9751dccc63414cbce5e2a92227a644a7b94e5dd41aad73f05f168693908451d5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/sql/mysql.sql",
      "bytes": 152834,
      "sha256": "e74041cf4d01fdcff5f1dd355b3b9891aaa11bd9af3e414f10902b03b5b83467",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/sql/mssql.sql",
      "bytes": 158875,
      "sha256": "468e8c72eb0485dbd0e7e2ff1b1e5ea1c00bc526414f994fda853bb748aba029",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/sql/sqlite.sql",
      "bytes": 152558,
      "sha256": "c8cfcb0cc951e25e8a13a93d03316e1ea70affdcb9734416defd08370765f967",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/prisma/seed.ts",
      "bytes": 342688,
      "sha256": "9334093cb33ec8ddc0c2d96818b53ba309bab7a9c77175ecec0c3d550bfb5552",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/financial-transactions-overview/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transactions-overview/v3/django/fixtures.json",
      "bytes": 513590,
      "sha256": "1619a64d30e28bbb1c653cab3dbdb497a83660d43465e1afc85ed3fbd997ccfa",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768721767,
  "updatedAt": 1788784011486
}
