Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Having trouble creating a specific view.

    BWT try this.

     

    SELECT

    P

    .HH_ID,

    (SELECT TOP 1 S.Student_ID

    FROM...

  • RE: Having trouble creating a specific view.

    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. ...

  • RE: Query over two columns

    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...

  • RE: Query over two columns

    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)...

Viewing 4 posts - 1 through 4 (of 4 total)