March 1, 2011 at 10:29 am
Q1. I have a row with all zero's and another row with all nulls(empty). How do i hide them both ?
Q2. I have a column with all zero's and another column with all nulls(empty). How do i hide them both ?
Note: I have other rows and columns which have data and i want to see them. l Just want to hide 0's and nulls.BTW its a matrix report.
March 1, 2011 at 11:42 am
Please post your DDL and DML.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 1, 2011 at 12:19 pm
varunkum (3/1/2011)
Q1. I have a row with all zero's and another row with all nulls(empty). How do i hide them both ?Q2. I have a column with all zero's and another column with all nulls(empty). How do i hide them both ?
Note: I have other rows and columns which have data and i want to see them. l Just want to hide 0's and nulls.BTW its a matrix report.
Q1 - with a where clause.
Q2 - don't include them in the select statement
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
March 1, 2011 at 12:20 pm
varunkum (3/1/2011)
Q1. I have a row with all zero's and another row with all nulls(empty). How do i hide them both ?
Select * from table
where isnull ( (c1 + c2 + c3 + c4 ) , 0) <> 0
March 1, 2011 at 12:26 pm
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply