LocalMaps Feature Queries allow you to view additional information about a feature that doesn’t exist on the layer itself. Feature queries essentially create a related record on the fly and then display this in the layer popup therefore removing the need to publish additional related records. Data in a feature query could be spatial i.e coming from an ArcGIS Server Service or non spatial eg reading directly from a table or stored procedure in your SQL Server, MySQL, Postgres or Oracle database.
In this section:
...
An example
The below map shows a parcel layer that has a number of feature queries associated with it. The first layer displayed in the popup panel is the core layer itself i.e Parcel. Listed beneath this are a number of feature queries. The first feature query, Valuation information, is surfacing data directly from a MySQL Database table, the second is surfacing Well information from a SQL Stored Procedure and the third is displaying Current Resource Consents from a spatial query against an ArcGIS Server Service.
...