Code Monkey home page Code Monkey logo

1999_czech_financial_dataset_teradata's Introduction

1999_Czech_financial_dataset_Teradata

Real world transactions in the years 1993 to 1998 from a Czech bank, modified for loading into Teradata.

Some modifications done to make the data look more up-to-date:

  1. 20 years were added to each date resulting in a date range from 2003 to 2018
  2. Amounts (in Czech Crowns) were divided by 10, now they look similar to current $ or โ‚ฌ amounts.
  3. Czech descriptions are translated to English abbreviations, e.g. VYBER KARTOU = credit card withdrawal= CCW (see column comments for actual values).

Based on the Financial Data Set from PKDD'99 Discovery Challenge.. This data was prepared by Petr Berka and Marta Sochorova.

All files contain tab-delimited data:

(4500 objects in the file fin_account.tsv) - each record describes static characteristics of an account,
(5369 objects in the file fin_client.tsv) - each record describes characteristics of a client,
(5369 objects in the file fin_disp.tsv) - each record relates together a client with an account,
(6471 objects in the file fin_order.tsv) - each record describes characteristics of a payment order,
(1056320 objects in the file fin_trans.tsv) - each record describes one transaction on an account,
(682 objects in the file fin_loan.tsv) - each record describes a loan granted for a given account,
(892 objects in the file fin_card.tsv) - each record describes a credit card issued to an account,
(77 objects in the file fin_district.tsv) - each record describes demographic characteristics of a district.

Prerequisites

  1. BTEQ must be installed on your client.

  2. The load user needs the CREATE TABLE right in the target database.

Installing using a Windows client

  1. Download financial_db_Teradata.zip and extract the zip file to a folder, e.g. C:\Samples\financial_db_Teradata.

  2. Modify the file fin_install.btq to match your target system. Optionally modify the database name.

  3. Open a cmd (or PowerShell) window, change to the folder and run the file using BTEQ:

cd C:\Samples\C:\Samples\financial_db_Teradata
bteq < fin_install.btq > fin_install.log

Installing using a Linux client

  1. Download financial_db_Teradata.zip and extract the zip file to a folder, e.g. ~/Samples/financial_db_Teradata.

  2. Modify the file fin_install.btq to match your target system. Optionally modify the database name.

  3. Open a terminal window, change to the folder and run the file using BTEQ:

cd ~/Samples/financial_db_Teradata
bteq < fin_install.btq > fin_install.log

Checking for successful installation

The script should finish in a few minutes.

If there's an error message returned check the fin_install.log the failing step.

Reinstalling

Before re-running the install script the tables must be dropped in a specific order due to the FK constraints

   DROP TABLE fin_card;
   DROP TABLE fin_loan;
   DROP TABLE fin_order;
   DROP TABLE fin_trans;
   DROP TABLE fin_disp;
   DROP TABLE fin_client;
   DROP TABLE fin_account;
   DROP TABLE fin_district;

1999_czech_financial_dataset_teradata's People

Contributors

dnoeth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.