https://devhubby.com/thread/how-to-use-the-having-keyword-in-a-query-using