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.
1.
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!
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.
See nullable columnsVisualize table relationshipsImport from any database
Try ChartDB FreeNo credit card required