PLS-00399: different types of columns in UNION, INTERSECT,
or MINUS expression

Answer Posted / guest

Cause: The select lists to the left and right of a UNION,
INTERSECT, or MINUS expression select at least one column
that is mismatched in datatype. For example, the following
statement is faulty because the constant 3 has datatype
NUMBER, whereas SYSDATE has datatype DATE: CURSOR my_cur IS
SELECT 3 FROM emp INTERSECT SELECT SYSDATE FROM emp;

Action: Change the select lists so that they match in
datatype. You might want to use datatype conversion
functions in the select list of one or more queries.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

invalid quantity specification negative quantity are not allowed for this item please check this item definition quantity

2854


IMP-00070: Lob definitions in dump file are inconsistent with database.

1284


ORA-26094: stream format error: input column overflow

2246


NZE-28890: Entrust Login Failed

1405


Hi guys, I have four tables those are emp,dept,eliminate and uneliminate. i wrote small cursor..when i run, it display one error (ORA-01403 nodata found)... The query is: Declare cursor c1 is select e.ename emp_name from emp e,dept d where e.deptno=d.deptno group by deptno; r1 c1%rowtype; test_emp varchar2(200); begin for r1 in c1 loop begin select eliminate_emp into test_emp from eliminate t,uneliminate ut where t.number=ut.number and t.deptno=e.deptno and rownum<1; end; dbms_output.put_line(r1.emp_name); end loop; end; Thanks...

2135






ORA-26028: index string.string initially in unusable state

3395


IMP-00064: Definition of LOB was truncated by export

5880


Hi guys, I have four tables those are emp,dept,eliminate and uneliminate. i wrote small cursor..when i run, it display one error (ORA-01403 nodata found)... The query is: Declare cursor c1 is select e.ename emp_name from emp e,dept d where e.deptno=d.deptno group by deptno; r1 c1%rowtype; test_emp varchar2(200); begin for r1 in c1 loop begin select eliminate_emp into test_emp from eliminate t,uneliminate ut where t.number=ut.number and t.deptno=e.deptno and rownum<1; end; dbms_output.put_line(r1.emp_name); end loop; end; Thanks...

2251


In my project I am using star schema and only diimension tables are loaded and not fact tables any one can help me why it is happening? Plase guide me.

2323


ORA-26082: load of overlapping segments on table string.string is not allowed

1371


ORA-16516: The current state is invalid for the attempted operation.

8057


ORA-26027: unique index string.string partition string initially in unusable state

6152


IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1233


NZE-28868: Peer certificate chain check failed.

2263


ORA-16626: failed to enable specified object

1767