select t.*,服务处理表.处理人员
from 服务处理表,(select a.服务表id,max(a.id) as id from 服务处理表 a group by 服务表id)t
where 服务处理表.id=t.id and 服务处理表.服务器id=t.服务器id
from 服务处理表,(select a.服务表id,max(a.id) as id from 服务处理表 a group by 服务表id)t
where 服务处理表.id=t.id and 服务处理表.服务器id=t.服务器id
from 服务处理表,(select a.服务表id,max(a.id) as id from 服务处理表 a group by 服务表id)t
where 服务处理表.id=t.id and 服务处理表.服务器id=t.服务器id
这句话也有错啊!select t.* tc_SaleEventAbount.AboutStaff_ID from tc_SaleEventAbount,(select a.SaleEvent_ID ,max(a.NumberID) as id from tc_SaleEventAbount a group by SaleEvent_ID)t
where tc_SaleEventAbount.NumberID=t.id and tc_SaleEventAbount.SaleEvent_ID=t.SaleEvent_ID错误信息:
服务器: 消息 170,级别 15,状态 1,行 1
第 1 行: 'tc_SaleEventAbount' 附近有语法错误。
服务器: 消息 170,级别 15,状态 1,行 1
第 1 行: 't' 附近有语法错误。