You can reference a Datalake table (but no other VantageCloud Lake table) using the following dot notation.
Syntax
datalake_name.database_name.table_name
Syntax Elements
- datalake_name
- Name of the DATALAKE object representing the Datalake (see CREATE DATALAKE and REPLACE DATALAKE).
- database_name
- Name of the database where the Datalake table is.
- table_name
- Name of the Datalake table.
Examples
Select all columns of table db1.t1 in Datalake object Iceberg1:
SELECT * FROM Iceberg1.db1.t1;
Select column c1 of table db1.t1:
SELECT * FROM Iceberg1.db1.t1.c1;
Select the count of all columns of table db1.t1:
SELECT count(*) FROM Iceberg1.db1.t1