SQL Server 2000 SP4
I have a query that is based on a date range and a bit flag. The query returns a recordset of two records. One record for each state of the bit flag. The values are a SUM.
Sometimes the query correctly return only one record. However in this case I would still like two records in the recordset. One with the returned sum value and one with a return value of Zero.
Is this possible and if so how would I go about doing this?
zemp
I have a query that is based on a date range and a bit flag. The query returns a recordset of two records. One record for each state of the bit flag. The values are a SUM.
Sometimes the query correctly return only one record. However in this case I would still like two records in the recordset. One with the returned sum value and one with a return value of Zero.
Is this possible and if so how would I go about doing this?
zemp