Need to make Sum IIF query in linq vb.net -
i new linq , need query linq in vb.net data table
every column setted var char if useful query:
select sum(iif([columnnametocountvalues] in ('value1','value2','value3') , [employeid] '[idvalue]' , [project] '[projectname]',1,0)) total [datatablename];
this query should return integer.
where error , question have tried? have said "this query should return integer."
may output got error, isn't it? so, why not change database column data type int
Comments
Post a Comment