Hello
can you help me to transform the next query to linq or lambda:
select Site,Libellé,(select count(*) from Staxe
where Sites.Site = Staxe.Site and [Date_Comm]='28/09/2016') as NbreAppelSortant ,
(select count(*) from Staxe
where Sites.Site = Staxe.Site and [Date_Comm]='28/09/2016' and [Nature_Comm]='M') as NbreAppelSortantGsm,
(select count(*) from Staxe
where Sites.Site = Staxe.Site and [Date_Comm]='28/09/2016' and [Nature_Comm]='L') as NbreAppelSortantLocaux,
(select count(*) from Staxe
where Sites.Site = Staxe.Site and [Date_Comm]='28/09/2016' and [Nature_Comm]='N') as NbreAppelSortantNationnaux,
(select count(*) from Staxe
where Sites.Site = Staxe.Site and [Date_Comm]='28/09/2016' and [Nature_Comm]='I') as NbreAppelSortantInternationnaux
from Sites
thanks

Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 27, 2021, 11:28 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 27, 2021, 11:27 AM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted Apr 28, 2021, 7:53 AM EDT