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

Query - Seems Simple But I Don't Get It

$
0
0

My table looks like this:

SampleID    AttributeID     Value

163 black

263 black

265 west

365 east

463 white

465 west

563 black

565 west

I want to get the sampleID's whose attributes are 65 and value = 'west', who also have an attribute of 63 with a value of 'black'.  So the result should be SampleID's 2 and 5 only. 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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