On Feb 18, 2:53 am, karthick <karthick....@gmail.com> wrote:
> Hi
>
> I am new to oracle. I guess In  the query [select empno, ename, sal,
> to_char(null) as "Transfer Date" from emp ] the fourth column is varchar
> where as in this query [select empno,ename,sal,tdate from emp6;] the fourth
> column is date . so try to_date instead of to_char.
>

Why use any conversion at all?  A correct and proper UNION query has
already been posted; selecting NULL absent any conversion will satisfy
the conditions of the union.


David Fitzjarrell

-- 
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to Oracle-PLSQL@googlegroups.com
To unsubscribe from this group, send email to
oracle-plsql-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

Reply via email to