Convert SELECT statements from Teradata to BigQuery - Migration Guide
Here are the comparison between Teradata & BigQuery SQL SELECT versions:
Teradata | BigQuery | Comments |
SELECT | SELECT | Columns implicitly inferred from the table are supported |
SELECT | SELECT | Using an explicit table reference is supported |
SELECT | SELECT | Using an explicit table alias is supported |
SELECT | SELECT | Using positional references in the group by clause is supported |
SELECT | WITH flags AS ( | In BigQuery, columns cannot reference the output of other columns defined within the same select list. Prefer moving a subquery into a WITH clause |
SELECT TOP 10 * FROM table | SELECT * FROM table LIMIT 10 |
Joins in Teradata vs BigQuery
Teradata | BigQuery |
FROM A, B ON A.id = B.id | FROM A JOIN B ON A.id = B.id |
Using a comma between tables in Teradata is equal to an INNER JOIN, while in BigQuery it equals a CROSS JOIN (Cartesian product)
Post Comment