Test: bugs.core_5165_test
Title: HAVING COUNT(*) NOT IN ( <Q> ) prevent record from appearing in outer resultset when it should be there (<Q> = resultset without nulls)
Show cross-report outcomes.  Jump to elapsed_time_chart

Chart of elapsed time, ms: