如何在 linq (VB) 中编写此查询
select
g.*
from PROB_GROUP g
inner join
(
select
PGR_NAME,
PGR_PCELL,
max(PGR_VERSION) max_version
from PROB_GROUP
group by PGR_NAME, PGR_PCELL
) grouped_g
on g.PGR_NAME = grouped_g.PGR_NAME
and g.PGR_PCELL = grouped_g.PGR_PCELL
and g.PGR_VERSION = grouped_g.max_version
order by g.PGR_TYPE, g.PGR_NAME