sql - Function / criteria to give me records from the last 90 minutes -
i have time/date field in select query , want set criteria return records last 90 minutes. criteria should use?
you'll want use datediff function comparison. like:
... datediff("n", recorddate, currentdate) <= 90 ...
Comments
Post a Comment