SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


I want to see only the Red backgroundcolour columns?!


I want to see only the Red backgroundcolour columns?!

Author
Message
GG_BI_GG
GG_BI_GG
SSC-Enthusiastic
SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)

Group: General Forum Members
Points: 178 Visits: 258
Hi BI Crew,

Im compare 2 column to find errors. Now I want only the red color columns.

Im using the following expression;

=iif(Fields!Serial__.Value = Fields!item_sc.Value, "LimeGreen", "Red")

Im using the following SQL Syntax;

select distinct LOWER(REPLACE(b.[Device Name], ' (Switch 01 - Master) ', '')) as ID1, LOWER(a.item_keya), b.[Serial #], a.item_sc, stat_flag
from flo b left join item a on b.[Serial #]=a.item_sc OR
b.[Device Name]=a.item_keya
where stat_flag = @stat_flag

In the picture you see how it look like:
Attachments
Capture.JPG (11 views, 22.00 KB)
GG_BI_GG
GG_BI_GG
SSC-Enthusiastic
SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)SSC-Enthusiastic (178 reputation)

Group: General Forum Members
Points: 178 Visits: 258
karim.boulahfa (2/18/2014)
Hi BI Crew,

Im compare 2 column to find errors. Now I want only the red color columns.

Im using the following expression;

=iif(Fields!Serial__.Value = Fields!item_sc.Value, "LimeGreen", "Red")

Im using the following SQL Syntax;

select distinct LOWER(REPLACE(b.[Device Name], ' (Switch 01 - Master) ', '')) as ID1, LOWER(a.item_keya), b.[Serial #], a.item_sc, stat_flag
from flo b left join item a on b.[Serial #]=a.item_sc OR
b.[Device Name]=a.item_keya
where stat_flag = @stat_flag

In the picture you see how it look like:


answer
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search