In this blog post, let’s learn about the error message “4195 The name, col_name, specified in the GROUP BY or HAVING clause is ambiguous.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4195 The name, col_name, specified in the GROUP BY or HAVING clause is ambiguous.
Reason for the Error
The GROUP BY expression contains a renamed column in the select list.
Solution
Correct the column name in the GROUP BY expression