Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
SELECT * FROM (SELECT TOP 1 create_date AS [Voted On], -1 AS [User Link] FROM sys.databases WHERE name NOT LIKE '%_Temp' ORDER BY create_date DESC) AS last_updated UNION ALL SELECT CreationDate AS [Voted On], UserId AS [User Link] FROM votes WHERE VoteTypeId = 5 AND PostID = ##PostId## ORDER BY 1 DESC