I want to have 2 columns: Table Name and Row Count
When I run this, I get 12 table names in my database. How do I then count the rows in each one without having to union 12 count queries together:
SELECT T.name FROM sys.tables t WHERE name LIKE '%20170101%'