difference between where and having

difference between where and having

WHERE is a single row function, where as Having is based on groups.
When we use having Having we should use the Group by keyword.