Forum Replies Created

Viewing 5 posts - 31 through 35 (of 35 total)

  • RE: Convert positive to negative and vice versa

    I have used th case statement to do reverse the values present in the Table

    select

    case

    when MyCol>0 then 0-MyCol

    else

    abs(MyCol)

    end

    from dbo.MyTable

  • RE: Query Help

    The logic here is pretty simple.

    I have used a while loop to get the difference between the Min and Max date and then insert the missing records into the table...

  • RE: Case Statement problems

    I guess the below query will be useful for your problem

    select contactdesc,

    case

    when (donedate is null and getdate()>=duedate) then 1

    when donedate is not null then 5

    when (donedate is null and...

  • RE: Deleting 170 Million rows - Database Maintenance

    I believe after deleting the rows You should execute DBCC Reindex and then use dbcc updateusage

  • RE: Index corruption on table update

    Recommend you to do DBCC UPDATEUSAGE on the indexes of the Table .This will ensure that all corrupt/discrepant indexes are fixed.

    Hope this will resolve your problem

Viewing 5 posts - 31 through 35 (of 35 total)