GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  PL/SQL

 Print  |  
Question:  How to write a query or procedure or function to retrieve all the tables from database where the table dont have any data (no rows).

Answer: Database has 100 tables and some of the tables dont have any data. I want to pullout those table names from database in Oracle.


June 06, 2008 01:07:21 #3
 sr_2407   Member Since: February 2008    Total Comments: 1 

RE: How to write a query or procedure or function to retrieve all the tables from database where the table dont have any data (no rows).
 
select  table_name ,num_rows from user_tables
where num_rows=0
     

 

Back To Question