SELECT COUNT(U.Id) AS "Počet uživatelů", ROUND(100.0 * CO...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Programming Language Design and Implementation Meta

Q&A for designers and implementers of computer programming languages

SELECT 
    COUNT(U.Id) AS "Počet uživatelů",
    ROUND(100.0 * COUNT(U.Id) / (SELECT COUNT(*) FROM Users), 2) AS "Procet uživatelů bez postu"
FROM Users U
LEFT JOIN Posts P ON U.Id = P.OwnerUserId
WHERE P.OwnerUserId IS NULL

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results