Aug 29, 2012 #1 jazzyjj IS-IT--Management Aug 29, 2012 1 US In other words, I need to skip all records that have a value. In this case, I will only be updating accounts 85 and 92...PLEASE HELP!! Table - pat acct group 2 2365 253 66995 41 nkj1236 85 92
In other words, I need to skip all records that have a value. In this case, I will only be updating accounts 85 and 92...PLEASE HELP!! Table - pat acct group 2 2365 253 66995 41 nkj1236 85 92
Aug 30, 2012 #2 SQLScholar Programmer Aug 21, 2002 2,127 GB Depends if the entry is blank - or null. But one of the below.... BLANK UPDATE Tablename SET [acct group] = VALUEHERE WHERE [acct group] is null NULL UPDATE Tablename SET [acct group] = VALUEHERE WHERE [acct group] is null Obviously fill in Tablename and VALUEHERE with what you want to update it to. ---------------------------------------- http://www.fountain.me.uk Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra ---------------------------------------- Upvote 0 Downvote
Depends if the entry is blank - or null. But one of the below.... BLANK UPDATE Tablename SET [acct group] = VALUEHERE WHERE [acct group] is null NULL UPDATE Tablename SET [acct group] = VALUEHERE WHERE [acct group] is null Obviously fill in Tablename and VALUEHERE with what you want to update it to. ---------------------------------------- http://www.fountain.me.uk Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra ----------------------------------------
Aug 30, 2012 #3 bborissov Programmer May 3, 2005 5,167 BG [tt] acct group -------------- 2 2365 253 66995 41 nkj1236 85 92 [/tt] Code: UPDATE Table SET Group = 'SomeValue' WHERE ISNULL(Group,'') = '' Borislav Borissov VFP9 SP2, SQL Server Upvote 0 Downvote
[tt] acct group -------------- 2 2365 253 66995 41 nkj1236 85 92 [/tt] Code: UPDATE Table SET Group = 'SomeValue' WHERE ISNULL(Group,'') = '' Borislav Borissov VFP9 SP2, SQL Server