我有以下查询:
from spl in SpeciesLists
join ar in Areas on spl.Station.Area equals ar.Id
join ground in Grounds on ar.Ground equals ground.Id
join re in Regions on ground.Region equals re.Id
where spl.Station.Trip.year ==2013
select new
{
SpciesCommonName = slp.Description,
Are = ar.description,
Ground = ground.Code,
NumberOfTripsInProtectedAreas = "To be calculated",
}
“行程”可以包括一个或多个站点。保护区字段位于 Trip 表中,可以是 1 或 0。一个站点有一个或多个物种。
如何计算保护区的出行次数?
提前谢谢了