
CodePudding user response:
The select P_ORGNAME, count (distinct OPER_NAME), count (distinct ORG_NAME) from the TAB group by P_ORGNAME

CodePudding user response:
The select P_ORGNAME, count (distinct OPER_NAME), count (distinct ORG_NAME) from the TAB group by P_ORGNAME