Viewing 4 posts - 1 through 4 (of 4 total)
BWT try this.
SELECT
P
.HH_ID,
(SELECT TOP 1 S.Student_ID
FROM...
May 18, 2006 at 4:57 am
Gilamonster - this will work in most cases. There is however a problem where the there may be more than one record per HH_ID and Grade combination on the join. ...
May 18, 2006 at 4:56 am
Going down the route of adding the date and time together for comparision is fine, HOWEVER SQL server will not make effective use of indexes that are defined for the...
May 14, 2006 at 2:40 pm
I can see your problem. There are three parts to your data.
1) That between date1+1day and date2 (date1 is the date part not including time, note date1 < date2)
2&3)...
May 12, 2006 at 3:10 am
Viewing 4 posts - 1 through 4 (of 4 total)