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 s.id, s.weiterefelder, count(b.searchlists_id), count(ss.searchlists_id)
FROM searchlist s
LEFT JOIN search buyer_searchlists b ON bs.searchlists_id = s.id
LEFT JOIN seller_searchlists ss ON ss.searchlists_id = s.id
GROUP BY s.id, s.weiterefelder
HAVING COUNT(b.searchlists_id) = 0
SELECT s.id, count(bs.searchlists_id), count(ss.searchlists_id)
FROM searchlists s
LEFT JOIN buyer_searchlists bs ON bs.searchlists_id = s.id
LEFT JOIN seller_searchlists ss ON ss.searchlists_id = s.id
GROUP BY s.id
SELECT s.id, count(bs.searchlists_id) as buyercount, ss.sellercount
FROM searchlists s
LEFT JOIN buyer_searchlists bs ON bs.searchlists_id = s.id
INNER JOIN (
SELECT s1.id, count(ss2.id) as sellercount FROM searchlists s1
LEFT JOIN seller_searchlists ss2 ON ss2.searchlists_id = s1.id
GROUP BY s1.id
) AS ss ON ss.id = s.id
GROUP BY s.id