declare @MonthsAgo date = cast(dateadd(month, -2, getdate...

0

Please login or register to vote for this query.

(click on this box to dismiss)

スタック・オーバーフロー

プログラマーとプログラミングに熱心な人々のための質問と回答

declare @MonthsAgo date = cast(dateadd(month, -2, getdate()) as date)

select vote.PostId, post.Score, post.CreationDate from votes vote
  inner join posts post on post.Id = vote.PostId
  where post.CreationDate >=  ##SinceDate:string?@MonthsAgo## and Tags like '%java%'
order by post.Score desc

Enter Parameters

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