coalesce vs. case statement
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


coalesce vs. case statement Expand / Collapse
Author
Message
Posted 9/22/2009 1:27:36 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/23/2009 6:38:54 PM
Posts: 2, Visits: 4
We have a set of SQLs that make extensive use of case statements for handling NULLs. I know that coalesce can do the exact same thing. Is one more efficient than the other? This is a generic process that runs a gazillion times a day against many different tables, and has been identifed as a CPU hog.

We are looking at a lot of other options right now. However, in the meantime, since these case statements are used so extensively, we need to know if it would be more efficient to use the coalesce. If so, we can get a lot of bang for our buck by making the change globally (since it is a generic process).
Post #16898
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 10:08pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.156. 8 queries. Compression Disabled.