原SQL:

select avg(degree) from score where cno like '3%' group by Cno having count(*)>=5

Linq:

(
  from s in Scores
  where s.CNO.StartsWith("3")
  group s by s.CNO
  into cc
  orderby cc.Count() >= 5
  ....

如何写?linq to sql

0

from s in Scores
  where s.CNO.StartsWith("3")
  group s by s.CNO
  into cc
  where cc.Count() >= 5
  select cc.Average( c => c.DEGREE)

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2021-06-09
  • 2021-11-27
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2021-10-31
  • 2022-12-23
  • 2021-10-12
相关资源
相似解决方案