SELECT(SELECTzoneFROMoperational.assertionsWHEREid=1)AStrial,"how"asbrowser,"who"asuser,DATE_TRUNC('month',"when")asperiod,(SELECTstring_agg(cs.c,'::')FROM(SELECTjsonb_array_elements_text(capabilities)FROMoperational.usersuLEFTJOINoperational.rolesrONu.role=r.nameWHEREu.email="who")AScs(c))AScapabilities,count(1)asfrequencyFROMoperational.activitiesaWHERE"what"='Known user identified'GROUPBY"how","who",DATE_TRUNC('month',"when")
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.