Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL query for Bitwise operation via SSRS

$
0
0

I am trying to write a query to display data in a SSRS report where we can select multiple values from a list parameter.

The WHERE clause in the query has to filter based on the selected values with the statement below.

I need to be able to pass each of the selected values from the SSRS report to replace the value1 below. I can get it to work if only one parameter value is selected, but not if multiples are selected.

How do I get it to loop through each of the selected values and input that in to my where statement.

 where customer_communication_preferences & 1 <> 0

Thanks in advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>