--try
create table tb(col1 int,col2 int,col3 varchar(10),col4 varchar(10),col5 varchar(10),col6 varchar(10))
insert into tb select 1,2,'a','a1','b','b1' union all select 2,3,'c','c1','a','a2'
select col1,col2,col3,col4 from tb where col3 = 'a'
union all
select col1,col2,col5,col6 from tb where col5='a'
drop table tb