Coalesce with Timestamp,Nulls,and Concatenation - Mailing list pgsql-novice

From Pam Wampler
Subject Coalesce with Timestamp,Nulls,and Concatenation
Date
Msg-id 2E4528861499D41199D200A0C9B15BC001551060@taylorwhite.com
Whole thread Raw
Responses Re: Coalesce with Timestamp,Nulls,and Concatenation  (Andrew McMillan <andrew@catalyst.net.nz>)
List pgsql-novice
can someone please give the correct syntax for a query that has a column
timestamp that allows nulls and
needs to be converted to a certain format and also needs to be concatenated
with commas

example:

select to_char(timestamp1,'YYYYMMDD
HH24:MI')||','||employee||','||to_char(timestamp2,'YYYYMMDD HH24:MI') from
employee;

How do I put the coalesce & also get the correct format and handle if the
timestamps are nulls to ""?

thanks

pgsql-novice by date:

Previous
From: "Joshua b. Jore"
Date:
Subject: Re: Pl/Pgsql function troubles: FOLLOW UP
Next
From: "pg sql"
Date:
Subject: Re: [DOCS] Upgrading - How? - Administrator's Guide ??