Re: zero length string to zero

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Shadi Mal <shadi(dot)mal71(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: zero length string to zero
Date: 2016-04-21 20:48:48
Message-ID: 57193CB0.4020400@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/20/2016 05:31 AM, Shadi Mal wrote:
> 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 <http://unreadmandatory.id>,
> Count(unreadmandatory.course) AS nbrofmandatoryleft
> FROM unreadmandatory
> GROUP BY unreadmandatory.id <http://unreadmandatory.id>

What is the type of unreadmandatory.id?

And are you getting an empty string or NULL?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2016-04-21 20:49:45 Re: Proper relational database?
Previous Message Guyren Howe 2016-04-21 20:36:54 Proper relational database?