lookup with two values
Posted: Sun Dec 27, 2009 10:48 pm
Hi,
I have to lookup a hour dimension table and get the sequence id for the same
For ex, i have the time like this
01:10
And in the dim table, i have values like this
Seq_i|hr start time|hr end time
1111|01:00|01:59
So i need to get the value 1111 since my input 01:10 is in between hr start time and hr end time. Can you suggest how to do this?.
I have to lookup a hour dimension table and get the sequence id for the same
For ex, i have the time like this
01:10
And in the dim table, i have values like this
Seq_i|hr start time|hr end time
1111|01:00|01:59
So i need to get the value 1111 since my input 01:10 is in between hr start time and hr end time. Can you suggest how to do this?.