I need some help with SQL Query. I am trying to select all records from table test_table which would not fit between two dates \'2009-12-15\' and \'2010-01-02\'.
Using SQL Server 2005 I\'ve run a query like this SELECT * FROM mytable WHERE (LEFT (title, 1) BETWEEN @PREFIXFROM AND @PREFIXTO)
Is there a difference in the order of v1 and v2 in a BETWEEN query on SQL Server? SELECT * FROM table WHERE col BETWEEN v1 AND v2