How to fetch not null columns in Oracle

Tags:
Oracle
SQL
Hi team,
I have 90 fields in a table. Only 6-7 fields contain records out of 90. But I have only select not null fields in SQL without contain column name. How do I create SQL?
Please advise.
Thanks in advance!


Software/Hardware used:
oracle
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    I'm not sure to understand.  Do you want to write a select to retrieve only some columns, but without specifying the columns you want to retrieve?

    If that is the case, that is not possible.

    If that is not what you want, please explain the requirement with more details, and tell us, "why" do you need something like that.
    84,745 pointsBadges:
    report
  • TheRealRaven
    Are all NULL and not-NULL columns the same in every row? If not, then at the least a separate SELECT would be needed for each combination. What exactly is the output that is expected? Show an example.
    35,220 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: