答案 0 :(得分:1)
select b.reservatieID
from tablea as a
inner join tableb as b on a.KlantId = b.KlantId
where a.email="whatever"
并在where条件
中指定电子邮件答案 1 :(得分:0)
使用linq:
var ReservatieID = tableA.Join(tableB, ta =>ta.KlantId, tb =>tb.KlantId, (ta,tb) =>new{tableA = ta, tableB = tb})
.Where(a=> a.email == "whatever@domain.com").Select(a=> new{a.reservatieID});