Joannes Vermorel
Joannes Vermorel

Reputation: 9245

List all the tables and row counts in Teradata SQL?

I would like to translate the following Oracle SQL query into Teradata SQL:

SELECT table_name, num_rows FROM ALL_TABLES

This query retrieves all the tables along with the number of rows. What is the Teradata SQL equivalent?

Upvotes: 0

Views: 3549

Answers (1)

Diego Osvaldo Arnaiz
Diego Osvaldo Arnaiz

Reputation: 24

Try this and play :)

SELECT DatabaseName, TableName, CreateTimeStamp, LastAlterTimeStamp FROM DBC.TablesV

Upvotes: 0

Related Questions