GROUP BY ... HAVING ....

xiaoxiao2021-03-06  110

SELECT PEC_ROLES_KEY, Count (PEC_ROLES_KEY) from DT_Roles Group by PEC_ROLES_KEY HAVING COUNT (PEC_ROLES_KEY)> 1;

This is a group by. . . Having. . example of.

After group by, it is like a WHERE clause.

转载请注明原文地址:https://www.9cbs.com/read-100852.html

New Post(0)