I want to query how to find all the empty tables in my schema HR
i already tried with
select *
from dba_tables
where owner='HR' and num-rows is null;
but i dont know if this is the correct logic or not
Sql-server – how to find number of empty tables in any schema
sql serversql-server-2005
Related Question
- SQL Server – Composite Foreign Key Not Verifying All Columns
- SQL Server – Application Querying Empty Tables
- Sql-server – Window function not working on non selected rows
- SQL Server – Find if Column Exists in Certain Tables
- SQL Server Execution Plan – Actual Number of Rows Too High
- SQL Server – How to Find Values Missing from One Table in Another
- How to Get a Better Execution Plan for Empty Sets in SQL Server
- Dynamic SQL – How to Run a SELECT Against All Schemas and Tables
Best Answer
When you say 'empty' tables, I take that to mean tables with zero rows.
Using the example in this post as a starting point,