Free SQL COALESCE Generator
Build COALESCE expressions visually. Handle NULL values by returning the first non-NULL value from a list.
COALESCE returns the first non-NULL value. Drag to reorder or use arrows.
Column: A column name (e.g., phone_mobile)
String: Text value, will be quoted (e.g., 'N/A')
Number: Numeric value (e.g., 0)
Expression: SQL expression (e.g., price * 0.9)
Add at least one value to generate COALESCE
-- Add at least one value
Your data stays private
This tool runs entirely in your browser. Your column names and values are never sent to any server.
Other Tools
Try our other free tools!
Customer Testimonials
Don't just take our word for it

“I already see the value in it as an early customer and can't wait to try more ways to automate these schema diagrams. They are useful for so many reasons as we are investing more and more in great software architecture”
Arrigo Lupori
Co-Founder & Managing Director
SQL COALESCE Guide & FAQ
Need to see which columns allow NULL?
ChartDB visualizes your entire database schema, showing which columns are nullable at a glance. Understand your data model before writing COALESCE expressions.
No credit card required