zero length string to zero

From: Shadi Mal <shadi(dot)mal71(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: zero length string to zero
Date: 2016-04-20 12:31:10
Message-ID: CABOJmNYZK6y9QB-M1Nme8ovQyHVTVdYFObTPaj=VKMiVRx490g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I get zero length string in my result but I want to have zero value
instead.
what can I do?
my query is:
SELECT unreadmandatory.id,
Count(unreadmandatory.course) AS nbrofmandatoryleft
FROM unreadmandatory
GROUP BY unreadmandatory.id

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2016-04-20 13:21:16 Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?
Previous Message John R Pierce 2016-04-20 11:40:28 Re: Initdb --data-checksums by default