sql - Append X amount of results from one query to X amount of results from another (with no foreign key join) -
this query brings results this: select distinct date dwh.product_count
april, 2013 march, 2013 february, 2013 january, 2013
i'd append many results ^that^ brings results query:
select distinct p_id dwh.members a
5 7 8 ...etc
so results this:
5 april, 2013 5 march, 2013 5 february, 2013 5 january, 2013 7 april, 2013 7 march, 2013 7 february, 2013 7 january, 2013 etc....
what type of query bring these results?
select id, dt (select distinct p_id id dwh.members) s cross join (select distinct date dt dwh.product_count) t
Comments
Post a Comment