Home Forums SQL Server 2014 Administration - SQL Server 2014 Trying to compare parts of a single string in change log record to exclude zip +4 changes RE: Trying to compare parts of a single string in change log record to exclude zip +4 changes

  • It looks to me like you'll need to extract a sub-string of the Full Address that excludes any Zip+4 value.

    You can do that with PatIndex and SubString functions.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon