I have a table that has a datetime column and I need to retrieve records with a date within the previous hour, day, week, month etc.
One constraint is that I need to support Oracle, MySQL, DB2 and SQL SERVER. Can I achieve this with one SQL query only?