Skip to content

Instantly share code, notes, and snippets.

@anibihakeem
Created December 11, 2023 12:42
Show Gist options
  • Select an option

  • Save anibihakeem/38fa0bbb2ef12d02843f2bd7e6897c09 to your computer and use it in GitHub Desktop.

Select an option

Save anibihakeem/38fa0bbb2ef12d02843f2bd7e6897c09 to your computer and use it in GitHub Desktop.
SELECT DISTINCT TABLE_SCHEMA, COUNT(TABLE_NAME) AS table_count
FROM AdventureWorks2022.INFORMATION_SCHEMA.TABLES
GROUP BY TABLE_SCHEMA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment