Kod: Tümünü seç
select ad,sum(tutar) as toplam from yer
join mus on mus.yerid=yer.id
join musisl on musisl.musid_=mus.id
where tipid=1 And tipid=2
group by ad
order by toplam desc
Kod: Tümünü seç
select ad,sum(tutar) as toplam from yer
join mus on mus.yerid=yer.id
join musisl on musisl.musid_=mus.id
where tipid=1 And tipid=2
group by ad
order by toplam desc