Ich Nase hab es raus - GROUP BY heißt das Zauberwort:
select * from preise where preisid = (select preisid from preise where wohnungsid = 1 and preis <= 80 group by preis)
Ich Nase hab es raus - GROUP BY heißt das Zauberwort:
select * from preise where preisid = (select preisid from preise where wohnungsid = 1 and preis <= 80 group by preis)