【发布时间】:2010-06-22 02:20:25
【问题描述】:
有人可以帮我将 sql 查询转换为 LINQ,我对 linq 非常方便,但这有点多,我无法在这里下载 linqpad!
select
t.*,
l.*
from
email_templates t
left join
(select
id as email_id,
sent_at,
sent_by
from
email_log
where
id = (select max(id)
from email_log
where as_at_date = '20100618'
group by template_id )
)l
on t.id = v.template_id
【问题讨论】: