Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 27th, 2006, 08:45 PM
Sam Durai
Guest
 
Posts: n/a
Default Catalog query

Hello, How can I identity the list of columns (with the table in which
it is located) present in a database which has
[1] A blank or NULL value for ALL rows ( if the column is CHAR)
[2] A zero (0) for ALL the rows (if it is a numeric column)

Is there is any system.catalog entry which I can query to find out ?

Thanks, Sam

  #2  
Old November 27th, 2006, 10:05 PM
Ian
Guest
 
Posts: n/a
Default Re: Catalog query

Sam Durai wrote:
Quote:
Hello, How can I identity the list of columns (with the table in which
it is located) present in a database which has
[1] A blank or NULL value for ALL rows ( if the column is CHAR)
[2] A zero (0) for ALL the rows (if it is a numeric column)
>
Is there is any system.catalog entry which I can query to find out ?
>
No. You must query the actual tables to get accurate results.

However, if you've have recent statistics on the tables, you may be
able to get a rough idea by looking at syscat.tables (CARD) and
syscat.columns (COLCARD, HIGH2KEY, LOW2KEY, NUMNULLS, ...)
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles