Handling Null Values in PostgreSQL
Handling NULL Values¶ Let us understand how to handle nulls. By default if we try to add or concatenate null to another column or expression or literal, it will return null. If we want to replace null with some default value, we can use coalesce. Replace commission_pct with 0 if it is null. coalesce returns …