Amigos he buscado por todo internet, he agotado todas las instacias q
me llevan a lo mismo.
El problema es el Siguiente. lo hare en un ejemplo simple.
Query1:
select ID ,count(*) as total1 from tabla1 group by ID
ID total1
1 5
2 15
3 15
5 3
Query2:
select ID ,count(*) as total2 from tabla1 where sesion>150 group by
ID
ID total2
1 9
5 16
Quiero q salga asi:
ID total1 total2
1 5 9
2 15
3 15
5 3 16
La pregunta es la siguiente. como lo hago en realidad es unir las dos
consultas en una, se puede? porfavor confio en ustedes.
Leer las respuestas