Obtain Billboard Data Using a SQL Query
See Billboard Parameters for examples of parameters used in SQL queries.
If a list of values returned from the SQL query is used directly inside the SQL statement, the semicolon character needs to be replaced with a comma character. For billboards that use a SQL query, MineMarket does this just before the query is executed.
Security Note: You need the Allow billboard maintenance security right in the Billboards domain security rights group for this activity.
Activity Steps
- Open the Billboard (configuration).
- Select the Data Set Editor tab.
- Select the Data node in the Data Tables field group.
- Set the Data Source Type to SQL Query.
- If a billboard parameter is to be inserted into the SQL query:
- Configure the billboard parameter.
- Right-click in SQL Query and select Add Billboard Parameter from the menu.
- Select the required billboard parameter from the configured billboard parameters.
In the SQL Query string, the parameter displays in curly brackets {}. For example:
select * from Product where ProductCode like {ParameterX}
Note: The query string itself does not have to include quotes around the parameter (that is, {Parameter} and not '{Parameter}') because the quotes are automatically added when the actual value is substituted.
- Complete the following fields.
- Database Connection
- SQL Query
- Click Save.