How do I do this sql query to entity framework?
select
id,
column1,
column2 = case when (select max(column2) from table1 b where b.id = a.id) = a.column2
then 'Positive' else 'Negative' end
from table1 a
How do I do this sql query to entity framework?
select
id,
column1,
column2 = case when (select max(column2) from table1 b where b.id = a.id) = a.column2
then 'Positive' else 'Negative' end
from table1 a