select distinct
assignedTo,
alert_id,
insert_date_time,
alert_status_id,
alert_action_id,
alert_call_reason_id,
target_date
from Case_Management.AlertDetail
正常に動作します。
select distinct
assignedTo,
alert_id,
max(insert_date_time),
alert_status_id,
alert_action_id,
alert_call_reason_id,
target_date
from Case_Management.AlertDetail
エラー列'Case_Management.AlertDetail.assignedTo'は、集計関数またはGROUP BY句のいずれにも含まれていないため、選択リストでは無効です。
私は困惑しています。