Reputation: 558
I have this SQL statement for my mysql database.
SELECT MAX(customer_ID) AS high_customer_ID FROM `customers`.`customers` WHERE our_customer_ID=1;
but whene ther is no customer_ID with our_customer_ID = 1 then the statment return null but I want it to return 0 how do i do that.
Upvotes: 1
Views: 184