Have this T-SQL query that we used for a CrystalReport.
SELECT COUNT(*) AS Expr1, [Date], StoreNumber
FROM dbo.Orderp
WHERE (OpServerNumber = 0)
GROUP BY [Date], StoreNumber
Problem occurs if no rows are valid for a specific date and store.
Is it possible to return a single row with Expr1 = 0 if the query can't find any rows I the table?