Skip to main content

All Questions

Filter by
Sorted by
Tagged with
12 votes
3 answers
780 views

Are these two queries logically equivalent?

Are these two queries logically equivalent? DECLARE @DateTime DATETIME = GETDATE() Query 1 SELECT * FROM MyTable WHERE Datediff(DAY, LogInsertTime, @DateTime) > 7 Query 2 SELECT * FROM ...
Alf47's user avatar
  • 971