Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Analysing null / not null data

Re: Analysing null / not null data

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 31 Jan 2006 17:21:34 -0800
Message-ID: <1138756894.637788.173950@g47g2000cwa.googlegroups.com>


The dba_tab_columns dictionary view contains an estimated count of nulls in each column based on the optimizer statistics gathering process. The view also identifies how many unique values exist for each column, if is is nullable, and a few other interesting facts. Depending on why you want to create your summary this view may be useful.

Otherwise as Daniel said select count(*) from x where col1 is null. You will only need dynamic SQL if you are trying to write a generic routine that you can use on any of your tables.

HTH -- Mark D Powell -- Received on Tue Jan 31 2006 - 19:21:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US