huxsh1(提问者)我是这样写的,还是报错
select PERS_PERSON_PIN AS personPin,PERS_PERSON_NAME AS personName,ATT_DATE AS attDate,datename(dw, att_date) AS week,min(ATT_TIME) AS earliestTime,max(ATT_TIME )AS latestTime
from att_transaction group by personPin,personName,attDate,week, earliestTime
ycswyw1123 回复 huxsh1(提问者)select PERS_PERSON_PIN AS personPin,PERS_PERSON_NAME AS personName,ATT_DATE AS attDate,datename(dw, att_date) AS week,min(ATT_TIME) AS earliestTime,max(ATT_TIME )AS latestTime from att_transaction group by PERS_PERSON_PIN,PERS_PERSON_NAME,ATT_DATE,datename(dw, att_date)