i have 2 tables inbound,outbound two tables have same structure
inbound
id | site_id | ip (bigint) | date 1 | 1 | 12345678890 | 20140123 2 | 1 | 12341234000 | 20140123
outbound
id | site_id | ip | date 1 | 1 | 12345678890 | 20140123 2 | 1 | 12341234000 | 20140124 3 | 1 | 12341234000 | 20140124
my input is only site_id i want to combine inbound and outbound tables and get result as
inbound_unique_ip_count | outbound_unique_ip_count | date 2 | 1 | 20140123 0 or null | 1 | 20140124
i think group by date should work?