Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003

    Unanswered: How to determine what colums have data (with a twist)

    Okay, I know how to retrieve a row if a column has data, which is what I do all day. However, what if I wanted to run a query to find what columns have data and just report back the column name. How would one write that SQL? Again, I'm not interested in the data just if one or more columns of a table have data and if they do what the names of those columns are.

    If anyone can help me out on this one I would be very appreciative.

    Thank you in advance.


  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    IMO, the question is borderline nonsensical & answer would be row dependent.
    Please explain the business requirement behind this question.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Sep 2002
    Provided Answers: 1
    How about: analyse the tables and then query (ALL_TABLES.NUM_ROWS - ALL_TAB_COLUMNS.NUM_NULLS) for each column?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts