Dopiero zaczynam przygode i napotkałem problem przy tworzeniu perspektyw. nie potrafię znaleźć błędu.
CREATE VIEW w(nr_tem, temat, laczna_kwota) AS SELECT w.nr_tem, t.temat, sum(w.kwota) FROM wyplaty w, tematy t WHERE w.nr_tem = t.nr_tem GROUP BY w.nr_tem SELECT * FROM w DROP VIEW w
Dostaje błąd:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select * from w