I'm trying to make this query show 0 in the "nb" field when there are no record found for a specific date. Right now the output is 0 row, unless the date i specify exists in the "Commande" table.
SELECT
isnull(COUNT(*), 0) as nb,
CONVERT(date, c.Date_commande) as Date_commande,
f.Code_fournis
FROM Commande c
LEFT JOIN Fournisseur f
ON c.Code_fournis = f.Code_fournis
WHERE f.Code_fournis = 'XNZ'
AND Convert(date, c.Date_commande) = '2015-10-28'
GROUP BY CONVERT(date, c.Date_commande), f.Code_fournis
ORDER BY c.date_commande desc