kendris Posted December 13, 2014 Share Posted December 13, 2014 I'm trying to display the null values only, where am I going wrong? SELECT IFNULL(trans, 0) AS 'Transactions', customer.cID AS 'Customer ID', customer.surname AS 'Surname' FROM customer LEFT JOIN account ON (account.cID = customer.cID) WHERE IFNULL(trans, 0); Quote Link to comment Share on other sites More sharing options...
Solution kendris Posted December 13, 2014 Author Solution Share Posted December 13, 2014 I'm an idiot it was... SELECT IFNULL(trans, 0) AS 'Transactions', customer.cID AS 'Customer ID' FROM customer LEFT JOIN account ON (account.cID = customer.cID) WHERE account.trans IS NULL; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.