Given the Below Tables. How do I get the Distinct name given the other ID of 76 in LINQ?
**Table S**
SID OtherID
------------------------------
1 77
2 76
**Table Q**
QID SID HighLevelNAme LoweLevelName
---------------------------------------
10 1 Name1 Engine
11 1 Name1 SparkPlus
12 1 Name2 Seat
13 1 Name2 Belt
14 1 Name1 Oil
I want to return a list of
Name1 Name2
The SQL to do this is
SELECT DISTINCT
Q.HighLevelNAme
FROM S
JOIN Q ON Q.SID = S.SID
WHERE
S.OtherID = 76
I also have Objects that represents each table.
An answer in VB or C# is acceptable.