The select ORDER_ITEM_ID, ask_id cust_order_id, Count (distinct cust_order_id) from order_item group by cust_order_id 1, first of all, this statement is no syntax errors, can find out the result, are often use count () field must be at the back of the group by, 2, the return of the result is what mean? Look not to understand, how the main value of a field in front of a few take?
CodePudding user response:
Can be detected as a result, it should be do query in MySQL, Oracle does not support the,
The original poster can baidu sql_mode, only_full_group_by these two key words,