Click here to Skip to main content
16,019,349 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the query where i am getting error as ORA-00902: invalid datatype
SQL
SELECT mapg_id,
            tab_to_string (
               CAST (
                  COLLECT (
                        sourcetypes.stname
                     || ': '
                     || sources.sIdentifier) AS t_varchar2_tab),
               '',
               '; ')
               AS sources
       FROM sources, mapgroup_source, sourcetypes
      WHERE mapgroup_source.source_id = sources.source_id
            AND sourcetypes.sourcet_id = sources.sourcet_id
   GROUP BY mapg_id;

while same query is working perfectly in the another schema.
Posted
Updated 11-Jul-14 1:46am
v2
Comments
Maciej Los 12-Jul-14 18:39pm    
Not much information...

1 solution

Please, read my comment to the question, then visit this link: ORA-00902: invalid datatype[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900