All names are case-insensitive. Aliasing is not supported.
Formal syntax
In layman’s terms
- Use a dot (.) to left-outer join along a dictionary relation
- Use a colon (:) to inner join
- Use an arrow (->) when the relation goes from the target table instead of from the current table.
Defining your starting point
Any search has to start somewhere. You need to put your boot on the ground before you start exploring. You set your point like this:Go to a related table
If the current table has foreign keys to other tables, you can reach those tables by automatically joining with dot-syntax.Many-to-many relations
If there is a many-to-many relationship between 2 tables, we need a special notation for the join. The connector is a field in the target table that has a foreign key to the current table.- the
tickettable (table1) is our current table, origin - the
ticket_customerstable (table2) is the target table (destination) - we want to access the
cust_idfield (field2b) inticket_customers - to join, we use the
ticket_idfield (field2a) inticket_customersand follow this foreign key back to thetickettable