QUESTION POSED ON: 12 June 2007
I need statistics with count operation for more than two tables:
SELECT T1.city,
(select count(*) from T2 where T1.id=T2.id )
as totbooks ,
(select count(*) from T3 where T1.id=T3.id
and descr like '%newspaper%' )
as totnewspaper
FROM T1
group by T1.description
|