I wonder how to do this with a variable:
SELECT Count(distinct UserIP)
FROM VisitorIP
G0
SELECT Country, Count(distinct UserIP) Visitors, Count(distinct UserIP) * 100 / 2865 Pct
FROM VisitorIP group by country order by Visitors desc
Now I want to replace 2865 by the count(distinct UserIP) above.
There is a say: In IT, better one who knows than 10 who search!
Any clue welcome…
Happy New Year to all geeks out there.
Using a variable:
Moving
GOis essential here, in order for the variable to remain in scope for use in the second query.