I have a database with a bunch of tables.
I want to build a query, that lists all the tables in the database, and then do various counts in those tables.
For example count "How many rows that has 'D'
as country" etc.
I have figured out to do a SELECT name FROM db.sys.tables
to get all the tables, just can't wrap my head around the situation that I want to do counts on the tables also.
Its the same count I want to do in all tables.