Quantcast
Viewing all articles
Browse latest Browse all 4871

Select based on other matching column

This is a simple query question, but I've googled for a while and can't seem to phrase it correctly to find an answer.
Here are two tables:

Text
Stores
------
StoreNumber
StoreName
DistrictName

Districts
---------
DistrictName
DMname

I need to select Stores.StoreName where Stores.DistrictName matches the DistrictName of a certain DMname.

I'm sure I'll kick myself when I read it, but I can't wrap my head around what I need here.


Viewing all articles
Browse latest Browse all 4871


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