fmCustomSQL, fmAddNewSQLDialog - Custom SQL Section
Here you can create a query using SQL language. This section can be used to work with your store DB, fetching data easier and faster.
you open Custom SQL page, you'll see it looks a lot like the Create New
Report one. This page has 2 tabs: Edit and Logs and is divided in two
sections: top one is showing the query content (SQL text), and the
bottom one lists all available queries. You can also open an SQL Query
file that was previously saved by clicking on icon.
When constructing complicated queries it's more convenient to use Visual Query Builder.