PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Collapse]User Manual for PANTHEON
   [Expand]Getting Started
   [Expand]User Manual for eBusiness
   [Collapse]Settings
    [Expand]Subjects
    [Expand]Items
    [Expand]POS
     Manufacturing
    [Expand]Program
    [Expand]Personnel
     Calendar
    [Expand]Financials
    [Expand]Customs
    [Expand]Documentation
    [Collapse]Program
      Posx setting
      Creating a New Document Type
      Changing Report Settings
      Logon Window
     [Expand]Administration Panel
      New Format of Exchange Rate List
     [Expand]ARES
     [Collapse]SQL Editor
       SQL Query Building
       Kopiraj in prilepi podatke
     Change user
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]Service
   [Expand]Help
   [Expand]Personnel
   [Expand]Financials
   [Expand]Analytics
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 546.8504 ms
"
  1002738 | 209684 | 343829 | Updated
Label

SQL Query Building

 

CASE SUMMARY

This chapter shows the process of building SQL queries in the SQL editor of PANTHEON.

  1. Selecting tables (SQL Objects)

  2. Joining tables

  3. Selecting columns

  4. Defining additional settings

  5. Displaying queries

  6. Running queries and displaying results

  7. Confirming and returning to the original form*

  8. Further query analysis in Ad-hoc analyses

  9. Classic SQL Editor display

 

SQL query building

A tool for SQL Query building can be used instead of writing SQL queries manually. The tool can be accessed by clicking the  SQL Query Builder button in SQL Editor.

1. Selecting tables (SQL Objects)

The person responsible positions the cursor on SQL Objects in the menu on the right side of the window, selects the desired table (or view) and transfers it to the upper central panel, using the drag-and-drop method. The process is repeated for all tables that the person responsible wants to have in an individual query.

When searching for SQL Objects, the person responsible can use the search field, located above the objects list. For an advanced search, the person responsible uses the  (magnifier button), located on the right side of the search field. To check the properties of SQL Objects, the person responsible clicks the  (plus) button in front of the selected object.

* – a more detailed description of SQL Objects can be found at https://developer.datalab.eu, under Database info / DB Info P55.

 

2. Joining tables

If the person responsible would like to have a query that uses fields from several different tables (or views), the tables need to be joined together. Two tables are joined through a column, normally the key, which is located in both tables. The tables are joined by transferring the column from one table to the corresponding column in the other table, using the drag-and-drop method. In some cases, the tables are joined automatically, and there is no need for manual joining.

 

3. Selecting columns

If the person responsible wants to limit the column selection in the query results (because the person responsible does not want to have all data displayed), the person responsible simply select the columns by checking the checkbox in front of the selected columns.

 

4. Defining additional settings

Under the selected table display panel, there is a panel with additional settings, such as custom column naming (see Alias in the image), the type and sorting order (Sort Type and Sort Order), calculation operations (Aggregate), grouping (Grouping), etc.

 

5. Displaying queries

The query is being built along automatically, and it is displayed in the panel at the very bottom.

 

6. Running queries and displaying results

The person responsible starts the query by pressing the F5  function key on the keyboard, or by clicking the button in the image  below.

The result is displayed in the panel at the bottom of the window.

 

7. Confirming and returning to the original form*

*– only when the editor has been recalled from Ad-hoc analyses, Dashboard Components or another form.

Once the person responsible is satisfied with the built query, the person responsible clicks the OK (checkmark) button, as seen in the image below, to return to the original form, which can be Ad-hoc analyses, Dashboard Components, etc. The query is then transferred to the original form.

 

8. Further query analysis in Ad-hoc analyses

If the person responsible wants to further analyze the results of the built query, the person responsible clicks the Ad-hoc analyses button, as seen in the image below. The query will be transferred, and opened on the Ad-Hoc Analyses form, where the person responsible can create an Ad-Hoc Analysis.

 

9. Classic SQL Editor display

When the person responsible is using the tool for building a query and wants to see the query in the classic SQL Editor without using the tools for query building and without running the query, the person responsible uses the button, as seen in the image below.

A query in the classic SQL Editor will open.

 

 


 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!