Axel Richter: postgreSQL -> Aggregate in where-Klausel

Beitrag lesen

Hallo,

Mal ins Blaue geraten:

SELECT thema,AVG(rating.rating) as av_rating FROM rating GROUP BY thema WHERE av_rating >= 9

Bist Du sicher, dass ein WHERE _nach_ einem GROUP BY stehen darf?

Gruß

Axel