I want to create a list of tables and check each table in the list if it is empty. Below is the pseudo code of the logic but needs to be in TSQL.
Pseudo Code: