SELECT * FROM (SELECT TOP 1 create_date AS [Voted On], -...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

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

Enter Parameters

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