SQL
Querying by relative dates and times in SQL
Wanting to search for database records within a timeframe is relatively common, particularly if we want to examine error logs. How we search can make a large difference. The two queries below search for the same set of records in the same table but the first query has the potential