Sample datamine demos

These are a couple of demonstrations of the dataminer. These demos are from the tutorial that comes with the dataminer, in the sample folder.

The demos are in the form of animated gifs - these should work in most browsers. Once the demo has finished, use your 'back' key to return to this page.

In these demos, a yellow highlightling shows where you'd click if you were doing it yourself.

The demos:

The following are some more complex examples, not animated, just screen shots of the results.

The example database

This is the example database schema. It consists of three tables. The sample application stores user accounts, the group that the account is in, and phone calls that are made by each account.

ex_accounts holds the accounts - in our case, very simple data. A more realistic database might store other information about the account, such as real name, password, or whatever

ex_groups holds the account group names. Each account is in one and only one group. Again, a more realistic database would also store other group specific data.

ex_billing holds billing records for the database. Each billing record is attached to an account, and has a date, a quantity (duration), a rate per minute, and the total cost of the call (amount).

Comments about this sample database will probably be ignored. :) It's deliberately very stupid, and doesn't use any particular database specific features.

back to top document

create table ex_groups (
    group_id int PRIMARY KEY,
    group_name char(10)
) 

create table ex_accounts (
    account_id  int PRIMARY KEY,
    account     char(10),               -- account id
    group_id    int                     -- ref into ex_groups
)

create table ex_billing (
    billing_id  int PRIMARY KEY,
    account_id  int,
    edate       char(10),               -- event date as yyyy-mm-dd
    quantity    int,                    -- number of minutes
    rate        float,                  -- rate per minute
    amount      float                   -- total value of call
)