Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

SELECT - COUNT

$
0
0
select * from Tbl1, (select Tbl1.id from Tbl1 inner join Tbl2 on Tbl1.ref = Tbl2.id where Tbl2.type = 'E') AS Aux1, (select Tbl1.id from Tbl1 inner join Tbl2 on Tbl1.ref = Tbl2.id where Tbl2.type = 'J') AS Aux2 where Tbl1.id IN Aux1 and Tbl2.id IN Aux2

Viewing all articles
Browse latest Browse all 11336

Trending Articles