题目链接:点击打开链接
题目大意:略。
解题思路:略。
AC 代码
WITHt1AS(SELECTDISTINCTevent_type, AVG(occurences) OVER(PARTITIONBYevent_type) avgnFROMEvents) SELECTbusiness_idFROMEventseJOINt1ONe.event_type=t1.event_typeWHEREoccurences>t1.avgnGROUPBYbusiness_idHAVINGCOUNT(*) >1