select * from products where producttype=magazine union select * from products where producttype = book