Get Predictions
Join Models with Tables
Description
The JOIN
clause combines rows from the database table and the model table on a column defined in its implementation. It is used to make batch predictions, as shown in the examples.
Syntax
Here is the syntax that lets you join multiple data tables with multiple models to get all predictions at once.
Where:
Name | Description |
---|---|
integration_name.table_name_1 | Name of the data source table used as input for making predictions. |
integration_name.table_name_2 | Optionally, you can join arbitrary number of data source tables. |
project_name.model_name_1 | Name of the model table used to make predictions. |
project_name.model_name_2 | Optionally, you can join arbitrary number of models. |
Example 1
Let’s join the home_rentals
table with the home_rentals_model
model using this statement:
On execution, we get:
Example 2
Let’s query a time series model using this statement:
On execution, we get:
Follow this doc page to see examples of joining multiple data table with multiple models.