PLS-00398: wrong number of columns in UNION, INTERSECT, or
MINUS expression



PLS-00398: wrong number of columns in UNION, INTERSECT, or MINUS expression..

Answer / guest

Cause: The SELECT clauses to the left and right of a UNION,
INTERSECT, or MINUS expression do not select the same number
of columns. For example, the following statement is faulty
because the select lists do not contain the same number of
items: CURSOR my_cur IS SELECT ename FROM emp INTERSECT
SELECT ename, empno FROM emp;

Action: Change the select lists so that they contain the
same number of items.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

ORA-13456: GeoRaster cell data error

1 Answers  


RMAN-06012: channel: string not allocated

1 Answers  


ORA-00084: global area must be PGA, SGA, or UGA

1 Answers  


ORA-22861: invalid user-defined type

1 Answers  


ORA-13516: SWRF Operation failed: string

1 Answers  






ORA-09706: slsget: get_process_stats error.

1 Answers  


ORA-06808: TLI Driver: could not link IPX and ethernet streams

1 Answers  


ORA-31510: name uses reserved prefix CDC$

1 Answers  


ORA-24035: AQ agent string is not a subscriber for queue string

1 Answers  


ORA-30072: invalid time zone value

1 Answers  


ORA-27010: skgfwrt: write to file failed

1 Answers  


AMD-00122: dimension #string: analytic workspace hierarchy dimension not specified

1 Answers  


Categories