update query for existing records based on criteria

  • I'm needing to write a query that updates about 700 records that have "Null" and write the phrase "Individual Purchase if it finds this.... I'm rusty with ad hoc update queries... thought below would work, but not:

    USE TrackIT

    UPDATE dbo.tblTransactions

    SET tblTransactions.Transaction_Type = 'Individual Purchase'

    WHERE tblTransactions.Transaction_Type = Null

    GO

  • i believe what you want isn't = Null but IS NULL

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

You must be logged in to reply to this topic. Login to reply