我试着拉这个,我有点卡住了。
select
distinct( msc.id),
msc.campaignname ,
max(mst.createdate) as mydate
from MainMiniSiteCampaign as msc
right join MainMiniSiteTable as mst
on mst.campaignid = msc.id
order by msc.id
group by msc.id
任何想法我做错了什么?
(错误是“关键字'group'附近的语法不正确)