mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
6 lines
213 B
SQL
6 lines
213 B
SQL
CREATE VIEW Beratungsanzahl AS (
|
|
SELECT berater_id, count(DISTINCT Berater.berater_id) AS Anzahl
|
|
FROM Berater
|
|
FULL OUTER JOIN Kunden ON Berater.berater_id = Kunden.berater_id
|
|
GROUP BY berater_id
|
|
)
|