Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: IN statment

$
0
0

Sorry if I wasn't clear enough. 

 

What I need is to select companies (activities_bus_busid) who is doing both Fishing and Golf. In our case it is companies 9 and 13

If I use IN operator I'm getting all 3 companies in the result (9,13,10) , as you mention earlier IN is working the same way as OR ( WHERE activities_bus_amid=3 or activities_bus_amid=13)

 

The simple question is, How to select companies who is doing Fishing and Golf not one of it but both?


Viewing all articles
Browse latest Browse all 21760

Trending Articles



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