To view the SQL statements that a table will attempt to execute (the query plan), right-click the title bar, and select ‘Show Plan’ from the context menu. This opens the ‘Query Plan’ dialog box.
The ‘Query Plan’ dialog box displays the queries that will be sent to the database at runtime. Additionally, it shows the data operations that the Worksheet will perform in post-processing, after the data is retrieved from the database.
By default, the Worksheet attempts to create a single SQL query that fully generates the table’s data. This is typically the most efficient approach because it allows the database to perform all the needed data operations (joins, filtering, etc.). However, you can override this behavior for a particular table by deselecting the ‘Merge SQL’ option in the ‘Table Properties’ dialog box.
This example illustrates how you can control the SQL query that a table sends to the database.
Copyright © 2024, InetSoft Technology Corp.