
...a to zapytanie:
SELECT tytul, imie, nazwisko, pseudonim, rodzaje.nazwa, ilosc_stron, wydawcy.nazwa, oprawy.nazwa, okladka,cena_k, sum((cena_k*upust)/100), data_dod FROM ksiazki JOIN autorzy JOIN wydawcy JOIN rodzaje JOIN oprawy JOIN prom_zest JOIN promocje ON promocje.idpromocji=prom_zest.idpromocji ON prom_zest.idksiazki=ksiazki.idksiazki ON oprawy.idoprawy=ksiazki.idoprawy ON rodzaje.idrodzaju=ksiazki.idrodzaju ON wydawcy.idwydawcy=ksiazki.idwydawcy ON autorzy.idautora = ksiazki.idautora GROUP BY nazwisko, imie, tytul
Otzymuje taki error:
Kod
Server: Msg 107, Level 16, State 3, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Server: Msg 107, Level 16, State 1, Line 1
The column prefix 'ksiazki' does not match with a table name or alias name used in the query.
Jak to poprawnie połączyć aby działało ?