Union query need to add extra dummy field to one side of the query (Ora-01790 error) [message #150505] |
Thu, 08 December 2005 04:03  |
Codheadred
Messages: 7 Registered: December 2005 Location: manchester
|
Junior Member |
|
|
I have inherited a query that union alls 2 select statements, I added a further field to one of the select statements ( a date field).
However I need to add another dummy field to the 2nd select statement so the union query marries up I have tried to do this by simply adding a
select
'date_on'
to add a field called date on populated by 'date_on' (the name of the column in the first query)
however when I run the union query i get the error
Ora-01790 expression must have same datatype as corresponding expression
I may be going the wrong way about this any and would appreciate any help available as its pretty urgent
Thankls Steven
[Updated on: Thu, 08 December 2005 04:10] Report message to a moderator
|
|
|
|
|
|
|
|
|