Q&A about the site for administrators, end users, developers and designers for Craft CMS
-- Based on "Check the presence of BountyAmount and UserId data for BountyXX events" select PostId [Post Link], UserId, CreationDate, VT.Name, BountyAmount from VoteTypes VT join ( select top 50 * from Votes where VoteTypeId = 9 order by CreationDate desc union all select top 50 * from Votes where VoteTypeId = 8 order by CreationDate desc ) T on T.VoteTypeId=VT.id