sql query to get zero records from a table
Answers were Sorted based on User's Feedback
Answer / nanne
Your Question is not clear..i believe that your expecting retrieve the tables which are having zero rows in the database.
Yes...we can retrieve the zero rows tables from DB
Select * from dba_tables
where num_rows = 0;
Regards,
Nanne
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vipul.solanki
select * from menu_master where rownum <1;
| Is This Answer Correct ? | 1 Yes | 2 No |
what is the difference between oracle enterprise edition and oracle express edition?
create or replace procedure show_tab_rec ( P_tab VARCHAR2 ) IS cmd varchar2(50); begin cmd := 'select * from '|| P_tab; for int in ( execute immediate cmd ) loop dbms_output.put_line ( int.ename||' '||int.deptno); end loop; end; when i m compling this procedure i m getting this error PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one of the following: . ( ) , * @ % & | = - + < / > at in is mod remainder not range rem => .. <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member SUBMULTISET_ PLZ solve this error give this question answer asap Thanks advance.......
how to find the n'th highest salary from emp ?
Does oracle partitioning improve performance?
What are the ways tablespaces can be managed and how do they differ?
How to define a data field as not null?
In my table i have 4 columns with 100 records but in that 4 columns one column contains all NULL values so can i add NOT NULL CONSTRAINT on that column......... ok if it is not possible, can i add NOT NULL CONSTRAINT from 101 Record Onwards?
How to use "if" statements on multiple conditions?
Is truncate autocommit in oracle?
How you open and close a cursor variable.Why it is required?
how do u know the total no of rows in a table?
Differentiate the standard purchase order,Blanket purchase agreement,Contract purchase agreement,Planned purchase order?