我必须从两个sql语句的结果中选择常见的coloumns c1,c2,c3.
1)
select c1, c2, c3,count(c3) from (select * from form_name
where data_created >'1273446000' and data_creazione<'1274569200')
group by c1,c2, c3 having count(c3)>1
Run Code Online (Sandbox Code Playgroud)
2)
select c1, c2, c3,count(c3) from (select * from form_name
where data_created>'1272236400' and data_creazione<'1274569200')
group by c1,c2, c3 having count(c3)>2
Run Code Online (Sandbox Code Playgroud)
我需要选择c1,c2,c3在查询结果中同样和常见.
怎么可能这样做...有人可以帮忙吗?
sql ×1