| From: | Serge Fonville <serge(dot)fonville(at)gmail(dot)com> |
|---|---|
| To: | itishree sukla <itishree(dot)sukla(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: coalesce function |
| Date: | 2013-06-20 16:26:18 |
| Message-ID: | CAOAS_+KYNB+nNXf68PWD4Yv01z+D4rRVYDpuiB4wkUbdQzKH4w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
http://www.postgresql.org/docs/9.1/static/functions-conditional.html describes
NULLIF, when combined with COALESCE it should answer your request.
HTH
Kind regards/met vriendelijke groet,
Serge Fonville
Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table
2013/6/20 itishree sukla <itishree(dot)sukla(at)gmail(dot)com>
> Hi All,
>
> I am using coalesce(firstname,lastname), to get the result if first name
> is 'NULL' it will give me lastname or either way. I am having data like
> instead of NULL, blank null ( i mean something like '' ) for which
> coalesce is not working, is there any workaround or other function
> available in postgresql, please do let me know.
>
>
> Regards,
> Itishree
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Leif Biberg Kristensen | 2013-06-20 16:28:37 | Re: coalesce function |
| Previous Message | itishree sukla | 2013-06-20 16:15:02 | coalesce function |