Querverkauf Analyse

Aus GRITON
Zur Navigation springen Zur Suche springen

Wir starten mit einem SQL Befehl:

create table tmp_querverkauf as
select ArtNrA, ArtnrB, count(*)
from (
SELECT a.rechnr, a.artnr as ArtNrA, b.artnr as ArtnrB
FROM `buchrech-artikel` a, `buchrech-artikel` b
where a.rechnr = b.rechnr and a.artnr<>b.artnr
) t
group by ArtNrA, ArtnrB
ORDER by 3 desc;

Dannach erstellen wir eine Netzgrafik von der Art: