How Do I Do A SQL Range For Date And Time Dimensions?
I have a reporting table that has a saledateid (days) and saletimeid (minutes) dimensions. I need to select a range that may be less or more than one day. If the range is more than
Solution 1:
I think this will do what you want:
where (saledateid > 1705 or
saledateid = 1705 and saletimeid >= 901
) and
(saledateid < 1708 or
saledateid = 1708 and saletimeid <= 1140
)
Post a Comment for "How Do I Do A SQL Range For Date And Time Dimensions?"