Description
TheSELECT
statement fetches data from a table and predictions from a model.
Here we go over example of selecting data from tables of connected data sources. To learn how to select predictions from a model, visit this page.
Syntax
Simple SELECT FROM an integration
In this example, query contains only tables from one integration. This query will be executed on this integration database (where integration name will be cut from the table name).Raw SELECT FROM an integration
It is also possible to send native queries to integration that use syntax native to a given integration. It is useful when a query can not be parsed as SQL.Complex queries
- Subselect on data from integration.
- Unions
UNION
and UNION ALL
operators. It this case, every subselect from union will be fetched and merged to one result-set on MindsDB side.