i want implement where clause in this query
my query is
select itemgroupname,itemgroupid ,'','' from tbl_itemgroup
union
select itemsubgroupname,itemgroupid,itemsubgroupid,'' from tbl_itemsubgruop
union
select proname,itemgroupid,itemsubgroupid,pid from tbl_productentry
where itemgroupname = na