SQL select HAVING is drop performance in WHERE clause
Use this code for better performance
Not use HAVING in WHERE clause
select prod_id,count(prod_id) from std_table
where prod_type='IT'
group by prod_id;
Instead of this code
select prod_id,count(prod_id) from std_table
group by prod_id
HAVING prod_type='IT'