Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 11 to 11 of 11 total |
Update Data (Set) |
Wed, Nov 20 2013 6:44 PM | Permanent Link |
Ben Sprei CustomEDP | Excellent
Thanks a mil ben "Jeff Cook" <jeffc@aspect.co.nz> wrote in message news:2DAFAB4E-ECAC-4CEA-952B-CFB5D07028CD@news.elevatesoft.com... > > > -- > Jeff Cook > Aspect Systems Ltd > www.aspect.co.nz > > "Ben" <arrow1432@verizon.net> wrote in message > news:11FDF902-17F0-4A0D-972C-2BD20C9873F8@news.elevatesoft.com... >> Is there anyway to write code like this: >> >> update PRWorkSheet >> set XFica = 0.00 where SalaryOT is null, >> set xwht = 0.00 where SalaryReg is NULL >> >> The above code as is returns an error >> > > Ben > > Try > > UPDATE PRWorkSheet > SET XFica = IFNULL(XFica THEN 0.00 ELSE XFica), > xwht = IFNULL(SalaryReg THEN 0.00 ELSE xwht) > > Cheers > > Jeff > > > > |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |