Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Table of Contents
classcontents

 

Overview

Styleclass
ClasstopLink

top

A virtual table allows you to insert an SQL statement into the view which brings back a set of derived fields and used as a logical table in the view builder.

...

  • Reducing maintenance of database summary tables.
    Virtual tables can, in some cases, replace aggregate tables stored on a database. These aggregate tables are costly to maintain. Derived tables can return the same data and provide real time data analysis.

 

Create Virtual Table

Styleclass
ClasstopLink

top

  1. To create a new virtual table drag the virtual table icon from your table list onto the canvas.
    Image RemovedImage Added
  2. The virtual table has an additional SQL link, click this to open the SQL popup.
    Image RemovedImage Added
    You can update the name of the table and insert the SQL to create your derived fields.
    Image RemovedImage Added
    Note: Your SQL cannot contain order by statements as this will cause the reports to fail. For aggregate columns ensure that you define the column name (as statement). This is required by Yellowfin to generate column names.
  3. Click the ‘Validate SQL’ Link to test your SQL against your target database.
  4. Click Save to save you SQL. This will show you a list of columns returned from your SQL statement.
    Image Added Image Removed

 

Edit Virtual Table SQL

Styleclass
ClasstopLink

top

To edit the SQL of your virtual table click the edit link on the virtual table summary page. This will open the SQL editor.

Image RemovedImage Added

If you have already attached columns from your Virtual table to your view you will have to be aware of the impact that any changes you make will have. For example you may drop columns or rename ones that are already in use.

...