I am trying to query SQL, based on a date
For each term I have a record in the "TermDate" table:
TemName StartDate EndDate
Term 1 9/1/2007 11/21/2007
Term 2 11/22/2007 1/29/2008
Term 3 ... ...
Seems easy enough, but I can't get it to pull the appropriate record. if xDate = 9/20/2007, the query should return me Term 1, for example.
Both date fields are...
User Profile
Collapse
-
"All you have to do then is run a couple of binary searches through periods until you find the first element in periods where periods[i].time <= login and the first element in periods where periods[i].time >= logout."
Can you give an example?
Thanks,
Dan B -
Determining if a time falls within a given set of time intervals.
Hi (using javascript) -
I have a schedule divided into periods
Period 1: 8:00 am - 9:10
Period 2: 9:15 am - 10:00 am
Period 3: 10:15 am - 11:05 am
...
...
...
Remember your days in school?..:)
I have a login time and a logout time (login at 8:10 am and logout at 9:45 am)
I need to know
1.) what period they logged in,
2.) what period they... -
-
Stored Procedure Vs UDF
Hello -
SQl newcomer here. I have an application that looks for scheduling conflicts (example: college student's class schedule.
Basically I have a record set that looks like this:
Student Section M1 M2 M3 M4 M5 M6
----------------------------------------------------------------------
1 2 T1 W3 F5
What I want to do is loop through...
No activity results to display
Show More
Leave a comment: