Forum Replies Created

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

  • Reply To: sum and count in same column

    Hi,

    As the case statement is the usual go to, you could try the case statement as below.

    sum(case when sc.numberofprocedures is null then 1 else sc.numberofprocedures end)

     

  • Reply To: How to extract date from a long string

    Hi,

    Since all the dates have the wording 'Date of Hire' in front of the date, look for that.

    Quick example as below.

    declare @string varchar(150)

    set @string = 'xxxxxxxx - Date of Hire...

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