Find recently created tables in Snowflake

Query below lists all tables in Snowflake database that were created within the last 30 days

Query

select table_schema,
       table_name,
       created,
       last_altered
from information_schema.tables
where created > DATEADD(DAY, -30, CURRENT_TIMESTAMP)
      and table_type = 'BASE TABLE'
order by created desc;

Columns

  • table_schema - schema that the table belongs to
  • table_name - name of the table
  • created - creation time of the table
  • last_altered - last altered time of the table

Rows

  • One row represents one table in a database
  • Scope of rows: all tables accessible to the current user in Snowflake database that were created within the last 30 days
  • Ordered by table schema, table name

Sample results

Comments are only visible when the visitor has consented to statistics cookies. To see and add comments please accept statistics cookies.
0
There are no comments. Click here to write the first comment.