Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)

  • RE: Update based on CTE - can this be done in one step?

    Thanks, I was trying to write it with update @PatientEpisodes because that's the name of the table I wanted to write the data into. It all seems very obvious when...

  • RE: Time calculation from datetime

    This should point you in the right direction:

    select e.*, datediff(minute,

    case

    when convert(time,e.Start_Time) < '09:00'

    then convert(time,'09:00:00')

    else convert(time,e.Start_Time)

    end,

    case

    when convert(time,e.End_Time) > '21:00'

    then convert(time,'21:00:00')

    else convert(time,e.End_Time)

    end

    ) as mins

    from @Evts e

    You might...

  • RE: SQL server newbie

    SQL Server is just used to store the data (and query it), so you'll probably still need Access to provide front-end screens for niceties like data entry and reporting. The...

Viewing 3 posts - 16 through 18 (of 18 total)