Added Aufgabe 4.6
This commit is contained in:
parent
7ecf4b944d
commit
bb84027ccf
@ -88,3 +88,9 @@ Geben Sie eine SQL Anfrage an, die alle Produkte ausgibt, die eine bestimmte Anz
|
||||
d. Mehr
|
||||
-----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
SELECT Produktname, GROUP_CONCAT(eZ.Anwendungsgrund), GROUP_CONCAT(E_Nummer),
|
||||
LENGTH(GROUP_CONCAT(E_Nummer)) - LENGTH(REPLACE(GROUP_CONCAT(E_Nummer), ',', '')) + 1 AS 'Anzahl Zusatzstoffe'
|
||||
FROM Produkt
|
||||
JOIN enthaeltZusatzstoff eZ on Produkt.ProduktID = eZ.ProduktID
|
||||
GROUP BY Produktname
|
Loading…
Reference in New Issue
Block a user