Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
SELECT
created_by,
CASE created_by
WHEN 'M.M' THEN 'Max Mustermann'
WHEN 'FB' THEN 'Foobar'
ELSE 'n/a'
END AS created_by_name,
SUM(MONTH(FROM_UNIXTIME(created))=1) AS Januar,
SUM(MONTH(FROM_UNIXTIME(created))=2) AS Februar,
SUM(MONTH(FROM_UNIXTIME(created))=3) AS Maerz,
SUM(MONTH(FROM_UNIXTIME(created))=4) AS April,
-- so weiter bis Dezember
FROM
customer
WHERE
id > 3607 AND id < 10000
AND created_by = 'Mustermann'
GROUP BY
created_by
ORDER BY
created_by ASC
SELECT
created_by, CASE created_by
WHEN
'MMustermann '
THEN
'Max Mustermann'
END AS created_by_name, SUM(MONTH(FROM_UNIXTIME(created))=1) AS Januar, SUM(MONTH(FROM_UNIXTIME(created))=2) AS Februar, SUM(MONTH(FROM_UNIXTIME(created))=3) AS Maerz, SUM(MONTH(FROM_UNIXTIME(created))=4) AS April, SUM(MONTH(FROM_UNIXTIME(created))=5) AS Mai, SUM(MONTH(FROM_UNIXTIME(created))=6) AS JUNI, SUM(MONTH(FROM_UNIXTIME(created))=7) AS Juli, SUM(MONTH(FROM_UNIXTIME(created))=8) AS August, SUM(MONTH(FROM_UNIXTIME(created))=9) AS September, SUM(MONTH(FROM_UNIXTIME(created))=10) AS Oktober, SUM(MONTH(FROM_UNIXTIME(created))=11) AS November, SUM(MONTH(FROM_UNIXTIME(created))=12) AS Dezember
FROM
customer
WHERE
id > 3607 AND id < 10000 and created_by = 'MMustermann'
GROUP BY
created_by
ORDER BY
created_by ASC");
Ich habe es mir aus gesundheitlichen Gründen abgewöhnt unformatierten Code zu lesen