Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only returning enteries with Data

Status
Not open for further replies.

lhg1

IS-IT--Management
Mar 29, 2005
134
DK
Hi

I have a SQL that returns quite a lot of colums.
I using Toad and whot I want is to only return the colums that contains data.
Its a select * and the colums that have data are not always the same.

My quistion.
Is there any way to only return colums that contain data?

Regards
LHG
 
It's not clear from your question what you mean. Can you give an example.
 
I don't think so. Your query does the vertical striping based on your SELECT list. Likewise, if you try to eliminate columns with no data by using a WHERE clause like
WHERE column2 IS NOT NULL
your data set will be striped horizontally, thus leaving out rows of interest.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top