interesting having clause eg
Wed Aug 10 2022 05:13:02 GMT+0000 (Coordinated Universal Time)
Saved by @vnmshenoy
see how distinct is used. I was trying to calculate current year by using YEAR(GETDATE())
https://learnsql.com/track/sql-from-a-to-z/course/sql-queries/order-by-group-by/having/having
Comments