Quantcast
Viewing all articles
Browse latest Browse all 1725

The Wiert Corner - irregular stream of stuff: jpluimers

This is way cool, and has been there for a long time, and I completely missed it until recently (:

On the Stack Exchange Data Explorer, you can write your own queries for any of the StackExchange sites as they share a common database infrastructure.

The queries can even contain an execution plan, and given the large number of questions (the total of Questions (table Posts) is total over 10 million now: select count(*) as QuestionCount from Posts as Questions).

There are many examples, for instance this one by sam.saffron and  TLama that lists posts outside the Delphi area:

DECLARE @MyUserID INT = ##UserID:int##

SELECT
    Answer.Id AS [Post Link],
    Answer.Score AS [Score],
    Question.Tags,
    Answer.CreationDate AS [Creation Date]
FROM
    Posts Question
LEFT JOIN Posts Answer ON Question.ID = Answer.ParentId
WHERE
    Answer.PostTypeId = 2 AND
    Answer.OwnerUserId = @MyUserID AND
    Question.Tags NOT LIKE '%<delphi>%'
ORDER BY
    Question.CreationDate
ASC

–jeroen

via My answers with non Delphi tag – Stack Exchange Data Explorer.


Filed under: Database Development, Delphi, Development, SQL, SQL ServerImage may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 1725

Trending Articles