MySQL Forums
Forum List  »  German

Spalten und Zeilen aus einer Tabelle erstellen
Posted by: Ronny Bollermann
Date: February 10, 2015 02:02PM

Hallo MySql Freunde,

ich habe ein Problem, welches mein Know How leider übersteigt. Vielleicht kann mir jemand helfen.

Ich habe eine Art Log-Tabelle mit folgendem schematischen Inhalt

Datum | Filiale | Verkäufer | Umsatz ....
01.01.15 | A | Sam | 10
01.01.15 | B | Olaf | 12
01.01.15 | C | Rolf | 5
01.01.15 | B | Rolf | 15
01.01.15 | B | Olaf | 8


Grundsätzlich sind die Möglichen Varianten bei Filiale und Verkäufer begrenzt und bekannt. Für jedes Datum gibt es Filiale und Verkäufer nur einmal

Der Traum wäre nun eine Ausgabe im Format:

Verkäufer | A | B | C
Sam | 10 | |
Olaf | 10 | 8 |
Rolf | 10 | | 5

wobei es prima wäre, wenn man das Datum noch einschränken könnte, auch wenn es nicht angezeigt wird.

Danke im Voraus
Atexo

Options: ReplyQuote


Subject
Views
Written By
Posted
Spalten und Zeilen aus einer Tabelle erstellen
1433
February 10, 2015 02:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.