customerNumber customerName state country 103 Atelier graphique NULL France 112 Signal Gift Stores NV USA
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' THEN 'N/A' ELSE state END) as state, country FROM customers' at line 5"
<pre>SELECT customerNumber, customerName, STATE 1= ( CASE State When NULL Then'N/A' ELSE state END), country FROM customers;
SELECT customerNumber, customerName, CASE When State IS NULL Then'N/A' ELSE State END AS State, country FROM customers;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)