easy solution with group by and having
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/* Write your T-SQL query statement below */\nSELECT p.product_name, SUM(o.unit) AS unit\nFROM\nProducts p\nINNER JOIN Orders o\nON p.product_id=o.product_id\nWHERE \n o.order_date>=\'2020-02-01\'\nAND o.order_date <\'2020-03-01\'\nGROUP BY p.product_name\nHAVING SUM(o.unit)>=100\n\n\n```
['MS SQL Server']