Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only
  • 1.  Predicates information

    Posted 04/07/20 09:26 AM
    Hi,

    I am looking for our famous Oracle column statistics query alternative in db2. I looked into DB2 catalog tables and didn't find anything.
    Can you please help me or guide me in right direction?

    Oracle Query :
    select r.name as r_owner, o.name as r_table , c.name as r_column,
                   equality_preds, equijoin_preds, nonequijoin_preds, range_preds,
                like_preds, null_preds, timestamp
                from sys.col_usage$ u, sys.obj$ o, sys.col$ c, sys.user$ r
             where o.obj# = u.obj# and c.obj# = u.obj# and c.col# = u.intcol#
              and o.owner# = r.user# and (u.equijoin_preds > 0 or u.nonequijoin_preds > 0)

    ------------------------------
    Neeraj
    ------------------------------

    #Db2


  • 2.  RE: Predicates information

    Posted 05/04/20 03:55 PM
    I'd love to see an answer to this as well if there is something available.  I have been chasing this for a bit, with no luck :(

    ------------------------------
    David Anderson
    ------------------------------