News

Useful for migrating from oracle to postgres. If you use enterprisedb decode statement may work but case statements will give you better performance compared with decode. Thanks to Enterprisedb ...
Friends,I'm trying to write a select statement that ends like this:and sc.customer_name in (DECODE(shipto,'0',sc.customer_name,shipto));The trouble is that shipto contains a comma delimted list. I ...
DECODE () : Facilitates conditional inquiries by doing the work of a CASE or IF-THEN-ELSE statement. The DECODE function decodes an expression in a way similar to the IF-THEN-ELSE logic used in ...