https://sedeschema.github.io/#Tags.ExcerptPostId

0

Please login or register to vote for this query.

(click on this box to dismiss)

IT Security Meta

Q&A about the site for information security professionals

-- Step 1: Find the user
SELECT TOP 1 OwnerUserId
FROM Posts
WHERE YEAR(CreationDate) = 2023
GROUP BY OwnerUserId
ORDER BY SUM(ViewCount) DESC;

-- Step 2: Retrieve badges for this user (replace `UserId` with the actual user ID from step 1)
SELECT Name
FROM Badges
WHERE UserId = [UserId];

Enter Parameters

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