proba

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping

Q&A for gardeners and landscapers

SELECT SUM(P.score), T.tagname
FROM tags T, posts P
WHERE P.tags LIKE '%'+T.tagname+'%'
GROUP BY tagname


SELECT Count
FROM tags
WHERE tagname='tells'

SELECT P.score, T.tagname
FROM tags T, posts P
WHERE P.tags LIKE '%'+T.tagname+'%'

SELECT SUM(P.score) AS SumScore, T.tagname
FROM (SELECT * FROM Tags WHERE count>4) T, posts P
WHERE P.tags LIKE '%'+T.tagname+'%'
GROUP BY tagname
ORDER BY SumScore DESC

SELECT AVG(P.score) AS AvgScore, T.tagname
FROM (SELECT * FROM Tags WHERE count>4) T, posts P
WHERE P.tags LIKE '%'+T.tagname+'%'
GROUP BY tagname
ORDER BY AvgScore DESC

Enter Parameters

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