How do find no data in the table

Hi all

I have 250 table in my diagram and when I query like this

Select * from object where type_objet = 'TABLE' and owner = 'MATTELLI.
order by object_name CSA


Some tables have no data in it. How to find the tables that not have data or records

Thanks and greetings
Srikkanth.M

Hi Srikkanth,

First of all, if you are only interested in object TABLE type, so you should better use dba_tables instead of dba_objects.
Then, assuming that your statistics are up to date, it would look like:

SELECT *
  FROM all_tables
 WHERE owner = 'MATTELLI'
  AND num_rows > 0
 ORDER BY table_name ASC

Otherwise, you can go with a subquery and a 'select count.

HTH,
Thierry

Tags: Database

Similar Questions

  • How to find null values in the table

    Hi experts,

    my version is oracledb10g:

    I am doubted simple.

    for example:

    create table ex1 (e varchar2 (20));

    Insert ex1 (null).

    insert into ex1 (e)

    number of will be: 2

    I can easily find the value "e".

    so my question is:

    How can I find null values in the table and I want to remove the null values from the table.

    ADF 7 wrote:
    Hi experts,

    my version is oracledb10g:

    I am doubted simple.

    for example:

    create table ex1 (e varchar2 (20));

    Insert ex1 (null).

    insert into ex1 (e)

    number of will be: 2

    It depends on what you expect. If you issue count (*) you ask Oracle "how many lines there. If you issue a County () you ask Oracle 'how non null values for are there. "

    ADF 7 wrote:

    I can easily find the value "e".

    so my question is:

    How can I find null values in the table and I want to remove the null values from the table.

    delete from 
    where  is null;
    

    Ideally you would simply place a NOT NULL constraint on the column in question, thus prohibiting NULL values into the system (assuming that your business needs, it is that the column MUST always have a value).

  • How to publish a data in the table from another table

    Oracle forms6i

    Hai All

    I created a form in order to generate traffic. I had a problem that I can post that two data

    I have two tables, a table is created dynamically the data in the tables are extracted from the text file, and they are divided and stored fields are

    Bartime Bardate barcode

    000011 0815 01/08/2010 - it came

    000012 0816 01/08/2010

    000013 0815 01/08/2010

    000011 1130 08/01/2010 - he goes for a break

    000011 1145 01/08/2010 - it comes once again in

    000011 1650 01/08/2010

    000012 1655 01/08/2010

    000013 1645 08/01/2010 - it home

    That I need to transfer this data to the database table, the table name is dail_att and the fields are
    Code bars, timein, timeout, breakin, escape, day like I need like this

    Barcode Timein Breakin Breakout Timeout Attend_date

    000011 0815 1130 1145 1650 01/08/2010

    I tried to use some service number and rank of count, but it does not work Pls I give good solutions

    The encoding is


    declare
    The CNT number;
    bar_code varchar2 (25);
    date of bar_date;
    in_time varchar2 (25);
    out_time varchar2 (25);
    intr_intime varchar2 (25);
    intr_outtime varchar2 (25);

    Cursor c1 is
    SELECT count (*), barcode, bardate, bartime
    -ROW_NUMBER() over (order by bartime) RN
    of temp_attendance
    Group of barcodes, bardate, bartime

    order by bardate;
    Start
    To r1 c1 loop
    -Select the barcode, bardate, bartime
    -ROW_NUMBER() on the partition by barcodeorder by bartime: nurse
    -of temp_attendance
    -the Group of barcodes, bardate, bartime
    -order by bardate;

    If (cnt < = 1) then
    Select the code bar, intimate, intrtimein, introuttime, outtime, attend_date in bar_code, in_time, intr_intime, intr_outtime, out_time, bar_date from dail_att where attend_date = r1.bardate - 1;

    Update dail_att set outtime = r1.bartime where attend_date = r1.bardate and barcode is r1.barcode.;
    elsif (cnt < = 2) then
    insert into dail_att(barcode,attend_date,intime,outtime)
    values (R1. Barcode, R1.bardate, min (R1. Bartime), Max (R1. Bartime));
    -other
    -update dail_att set outtime = r1.bartime where attend_date = r1.bardate and barcode is r1.barcode.;
    end if;

    End loop;
    forms_ddl ('commit');
    exception
    while others then
    forms_ddl ('rollback');
    message(SQLERRM|| dbms_error_Text);
    message(SQLERRM|| dbms_error_Text);
    End;




    Thanks and greetings

    Srikkanth.M

    You seem to always have the same problem, but give it different titles. It would be much easier that you would hold a thread open until its resolved. The last time you had this problem that I posted the following code, it didn't help you? (Replace x and y in each if or ELSIF with the calendar you want to watch)

    CURSOR cr IS
      SELECT CODE,
             DATE,
             TIME
        FROM FROM TEMP_ATTENDANCE
       ORDER BY CODE, DATE, TIME;
    BEGIN
      FOR rec IN cr LOOP
        IF rec.TIME BETWEEN x AND Y THEN
          -- Update record for last day
          ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        END IF;
      END LOOP;
    END;
    
  • How to find similar data in the worksheet?

    Hello.

    I need to find in my products from worksheet with the same name and find themselves their value on the cell.

    How can I do?

    Greetings

    Barbara

    Hi Barbara,

    What do you mean by "collect their value in cell one (e)?

    Do you mean something like this?

    Summary::B2: = SUMIF (Data::A, A2, Data::B)

    Fill down.

    Kind regards

    Barry

  • How to find missing values in the table?

    Hi all..

    Please help me.

    1.jpg

    For example:

    I have a. table

    in this table, I have a folder with the number 1 up to 10 serial number.

    And then, in table B, I put number between 1 and 10.

    and I use the number 1, 2, 3, 6, 8, 10.

    I want to find missing values between 1 and 10. So, can I select with query for this case?

    It's the value of query output:

    4, 5, 7, 9

    Sorry for the bad language.

    Thank you all.

    Select

    r

    Of

    (

    Select Rownum r

    Of the double

    Connect by Rownum<= (select="" serialto="" from="">

    )

    where are > = ((select serialfrom from tablea))

    less

    Select the series from tableb

  • How to find if the data in the table are distributed on multiple disks

    Hi all

    I have a question on parallel processing.

    Assume that the Oracle (11 g 2) database is installed on a 12 CPU hardware has 24 independent labels, then I guess it's that we can have a maximum of 12 DOP.

    But if the table on which I use the parallel market that spans only 4 discs then the above 4 parallelism will degrade the performance of the query.

    My question is how do I know if the data in the table are spread over the number of disk drives, so that we can properly apply valid parallel operations on the table.

    Appreciate your valuable contributions here.

    Thank you
    MK.

    Just think logically.
    What is a table in the database? A segment.
    What is a segment made up of? Scopes.
    What is recorded on a scale? The id_fichier of the data file.

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • How to find this value in the oracle database to find out the table

    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    918440 wrote:
    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    Go to the online documentation and discover the data dictionary. You may be interested in reading about ALL_TAB_COLUMNS, but you will need to know what you want until you can query the view to find information

  • How can insert different types of data in the table?

    Hello
    How can I insert different types of data in the table, (e.g., numeric and string) in the same index of a table.

    example:
    index0 car 10 green

    car red 11 index1
    Index2 car Blue 12

    where green car red and blue car as string and 10, 11 and 12 in the numeric form.
    then I extracted 10, 11 and 12 a digital table

    and, the green car, red car, blue car in a string array

    Help!

    Use 'Analysis of the chain' as in the picture as an attachment.  This will extract the number and color that you can add tables later.

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to write a simple select query to get the data of the table as an XML.

    How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
    select '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' 
    from temp_table where id_num BETWEEN 1 AND 10;
    I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select query
    without using XMLGEN, XMLQUERY or any other packages built and function?

    I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.

    What is wrong with him?

    At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
    In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:

    SQL> create or replace function my_url_escape (url in varchar2)
      2  return varchar2
      3  deterministic
      4  is
      5  begin
      6   return utl_url.escape(url, false, 'AL32UTF8');
      7  end;
      8  /
    
    Function created
    
    SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual;
    
    MY_URL_ESCAPE('HTTP://SOME.URI
    --------------------------------------------------------------------------------
    http://some.uri.com/param?lang=fr&text=contr%C3%B4le
     
    
  • How publish data from the table with some data loss all post in the forum

    I wonder how people are displayed the data in the table or the result of a query with losing them its format from Sqlplus display when they post in the forums of Oracle. I searched on the basis of knowledge of DB but I see no article about it. can you please help me or direct me to this link, I tried different options using code and other tags but nothing has worked, thank you for your help. Thank you.

    Edited by: Ariean October 3, 2011 12:34

    You can click on the link to the FAQ at the top right: http://wikis.sun.com/display/Forums/Forums+FAQ.

  • How insert/DML data in the table when the data in the related table changes

    Hello guys!

    I came across a problem that I need to get fixed. Because I don't know how to start and get it resolved I wanted to ask you for your expertise.

    The scenario is as follows:

    I have a table 'a' in my 10g database and a view "ab" which combined table 'a' with 'b' table in a view. However, the 'b' table is a table in another schema Manager database. and accessible (read only right) via a database link.

    Now here it is: whenever the data changes in table "b", for example 2 new sets of data is inserted, I need to insert automatically the 2 values of these 2 sets of data in my table "a". Same procedure for update and delete in table "b".

    The action that inserts data into the table 'a' must be initialized in my database, I have limited access to the other. Can I somehow use a trigger my reviews of "ab" to insert data into the table "a"? Or is it possible to use the "change notification procedure database" using the view as the reference?

    Desperately need help and example of all suspicion/code greatly appreciated. I am very new to Oracle and not very fond of PL/SQL routines. So please be so kind as to give me more details.

    Thanks in advance - I hope you have any ideas how I can get this problem resolved.

    Sebastian

    >

    ... it does not, since the DDL operations are not permitted on the remote databases (ORA-02021). I can't create the trigger on a view either. :-(
    So what ways are left to insert data into the table 'a' when the related table changes?

    Please, help if you have an idea!

    Yes,
    You can't perform the DDL (create the trigger...) on remote databases as you can see...
    Try to create this trigger in the local database that will make DML (insert into...) on the remote database.

        CREATE OR REPLACE TRIGGER local_forward_pt_after_insert
         AFTER INSERT
             ON N2K_INV_PT
             FOR EACH ROW
    
         BEGIN
             -- Insert records into table "a"
             INSERT INTO TBL_PUNKTDATEN@remote_database_sid
              ( INT_NUMMER,
                STR_GEBIET
                 )
             VALUES
              ( :new.INT_INV_PT_NR,
                :new.GEBIET );
         END;
    

    Thank you

    Good luck

  • How to find valid cases in the truth table?

    Hello

    I am using a truth table to select the next case in my state machine. The number of possible cases is 256 with a set of 8 input of Boolean values. The following is a generic example.

    Obviously, I don't need the conditions of passage, but how to weed them out of the table?

    0          1          2          3          4          5          6          7          8          9          10        11        12        13        14            15in house?            F          T          F          T          F          T          F          T          F          T          F          T          F          T          F            Tpassed test?       F          F          T          T          F          F          T          T          F          F          T          T          F          F          T            Tscrapped?          F          F          F          F          T          T          T          T          F          F          F          F          T          T          T            T in inventory?      F          F          F          F          F          F          F          F          T          T          T          T          T          T          T            T

    The numbers along the top refer to the result of the code just before the structure case in the attached vi.

    Tay

    jcarmody wrote:

    I often do.  Take each of your eight Boolean and consolidate them in a table, convert the table number and select your case on that based on the number.  Thus, if the first fifth suite and boolean (from above) are true, you have 25 case (10011000 = 25).  You can have a case manage multiple values, separate them with a comma in the selector.  It will make you famous.

    I do the same thing, but the value of the radix of the binary display case.

Maybe you are looking for

  • Satellite P10 824: card reader SD and IrDA doesn't work

    I have a tosiba Satellite P10 824 a I don't know why I can use Infra red and sd card reader.I installed the driver but I do not have nor why I can use.When an sd card I can't and I can't send anything via infra red.

  • Satellite L40-17 t cannot restart

    [My Satellite L40-17 t needs to restart, but my cousin has disabled by] "by pressing F2 and by changing some settings... when I turn on my laptop it says" Reboot and select proper boot device or Insert Boot Media in selected boot device and press a k

  • Satellite 1800-100 supports Ultra ATA-5

    Hello I have an old laptop Toshiba S1800-100 and there travelstar HARD top (15 GB) drive, but after watching with some diagnostic software such as Everest and Cpu - Z, it is shown that active interface is indicated as "UDMA 4 (ATA-66)" but maximum ra

  • Issue of certification

    Anyone know the cost for a certification exam? If the cost is based on the regional level, I'm in Georgia, USA.

  • HP compaq 6730 b: problem (hp compaq 6730 b)

    I have hp compaq 6730 b, actually I get some problem in my laptop, when I connect the charger it shows the connection of the charger, but actually it is not the battery. I made any idea given my experts like updating BIOS etc screenshot is fixed, ple