Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 4 of 4 total |
Is there a more efficient way to write |
Wed, Sep 24 2008 10:31 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Is there a more efficient way to write the following
IF(C._URLList IS NULL AND C._Website IS NULL THEN 0 ELSE C._ID) AS _URLsExist, I don't think either IFNULL or COALESCE will work but I may be wrong Roy Lambert |
Wed, Sep 24 2008 11:03 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Is there a more efficient way to write the following >> Why ? Is it slow ? -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Sep 24 2008 11:16 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
><< Is there a more efficient way to write the following >> > >Why ? Is it slow ? I have no idea if its slow or not, I haven't timed it, but I like my code to be as efficient as I can make it eg after another discussion I've gone through and changed code like IF(x is null then y else x) to COALESCE(x,y) I haven't noticed any massive speed up but as I say I prefer to write efficient code. Roy Lambert |
Wed, Sep 24 2008 2:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< I have no idea if its slow or not, I haven't timed it, but I like my code to be as efficient as I can make it eg after another discussion I've gone through and changed code like >> You won't find any difference between using IF() and nested IFNULL() calls. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, April 27, 2024 at 08:52 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |