#a)
CREATE OR REPLACE VIEW view_suppengerichte AS select * from gericht WHERE name LIKE '%suppe%';

#b)
CREATE OR REPLACE VIEW view_anmeldungen AS select name,anzahlanmeldungen from benutzer ORDER BY anzahlanmeldungen DESC;

#c)
CREATE OR REPLACE VIEW view_kategoriegerichte_vegetarisch AS SELECT k.name AS Kategorie, k.id , gk.gericht_id, g.name
                                                             FROM kategorie as k
                                                                      LEFT JOIN gericht_hat_kategorie gk ON k.id = gk.kategorie_id
                                                                      LEFT JOIN gericht g ON gk.gericht_id = k.id and g.vegetarisch = 1;