Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In your model, add a new Database Exporter:
    • Hover over the stream Customer Summary by Region, and press - Add a new Database Exporter
    • Give the new exporter the Name: Customer Summary By Region
    • Press Image RemovedPress Image Added

You will now see the new Database Exporter on the modelling pane.
Save your model layout.
To complete configuration of the Database Exporter:

  • Double-click on the new Database Exporter icon on your model view
  • In the tab Details:
    • Tick the flag Enabled
    • Select the Datasource Rating and Billing
  • Go to the Query String tab, and enter the query:
Code Block
insert into DEST_CUST_SUMM_BY_REGION

...


 (REGION, TOTAL_LAST_BILL_AMT, AVG_LAST_BILL_AMT)

...


 Values

...


 ({Region}, {TotalLastBillAmount}, {AvgLastBillAmount})
  • Press Image Removed

    Press Image Added

    Note that the pipe to the Database Exporter is dotted – this means that it is a Push pipe. When linking a Stream to a Database Exporter you must always use a Push pipe. This is because you cannot run a Database Exporter on its own; it must always be driven from a Stream (otherwise, it has no data to process).

    To test the Database Exporter you will run the Stream Customer Summary by Region. This is because the pipe you created to the Database Exporter is a Push pipe, and so by running this Stream you will push data from the Stream to the exporter.

  • Run Analysis on the Stream Customer Summary by Region
  • Check the log messages generated in the Console – in particular scroll to the end; you should see messages telling you that data has been exported by your Database Exporter

 

Anchor
_Toc442889073
_Toc442889073
Reviewing your exported data

...

  • Hover over the icon for the Database Exporter Customer Summary By Region
  • In the tool bar press - Show Outputs
  • The Datasource Rating and Billing will appear on your model view
  • Hover over the icon for the Datasource Rating and Billing
  • In the toolbar, press press Image Modified - Show Tables
  • Find the table you exported to - DEST_CUST_SUMM_BY_REGION
  • Double-click on the table to bring up the table data - this is the data you just exported