- Extractors
- Analyze Data
Extend relation by custom parameterized SQL of timeseries_datapoints
Perform the following steps to extend relation by custom parameterized SQL of
timeseries_datapoints
:- Drag and drop theNew Custom SQLfrom the left pane and place it next to the timeseries table.TheEdit Custom SQLdialog box is displayed.
- Provide the following custom SQL query.select * from public.timeseries_datapoints where timeseriesid =IMPORTANT: It is recommended to always specify the table with thepublic.nomenclature when writing custom queries. For example, to query fromtimeseriestable, useselect columns from public.timeseries.
- Select theCreate a New Parameteroption from theInsert Parameterdrop-down list.Select Create ParameterTheCreate Parameterwindow is displayed.
- Provide the following details:
- Name: Provide the name of the parameter.
- Data type: SelectIntegerfrom the drop-down list.
- Display format: Keep the default value.
- Current value: Keep the default value.
- Value when workbook opens: Keep the default option.
- Allowable values: Select theListoption.
- Select theWhen workbook opensoption.
- SelectId(Timeseries)from the drop-down list.
- ClickOK.Create Parameter Dialog
- In theEdit Custom SQLdialog box, clickOK.Edit Custom SQL Dialog
- SelectId (Timeseries)from the timeseries drop-down list.By default,=symbol is selected in theOperatordrop-down list.
- Selecttimeseriesidfrom theCustom SQL Querydrop-down list.
- ClickUpdate Now.Drop-down Selection
Provide Feedback