|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Columns display
i have columns in table like
A B C D E F 1 4 2 0 1 0 3 5 6 0 5 0 6 6 5 0 4 0 i need to display only those colums which has values lik A B C E 1 4 2 1 3 5 6 5 6 6 5 4 how can i do it |
|
#2
|
|||
|
|||
|
select a,b,c,e from your_table
where not d = 0 and not f = 0 Hope this helps, Gerrit-Jan Linker www.oraxcel.com Home of SQL*XL:Linking Excel to databases |
|
#3
|
||||
|
||||
|
"only those colums which has values"
it is not possible to pre-determine which columns to select until after the entire table has been scanned for values in each column for example, suppose the table had the following values -- A B C D E F 1 4 2 0 1 0 3 5 6 0 5 0 6 6 5 0 4 0 9 0 2 1 0 0 0 4 9 0 3 1 now every column has a value!! rudy http://r937.com/ |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Columns display |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|