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); Link to comment https://forums.phpfreaks.com/topic/293082-display-null-only/ Share on other sites More sharing options...
kendris Posted December 13, 2014 Author 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; Link to comment https://forums.phpfreaks.com/topic/293082-display-null-only/#findComment-1499511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.