Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 53 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 293 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.5K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 116 Oracle Analytics and AI Trainings
- 21 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Union (merge) 2 columns into one
I am building an analysis in the Recruiting – Recruiting Real Time subject area to report on Candidate Interactions. Interactions can be recorded in 2 different places: in the candidate profile (the data is located in "Candidate – Interactions" folder) and in the job application (the data is located in "Job Application – Interaction Note" folder).
When I include both sources as separate columns in one analysis, it creates duplicate rows, so I need both types of interactions combined into a single column.
I attempted to use a UNION through Set Operations (https://docs.oracle.com/en/cloud/saas/otbi/otbi-user/advanced-techniques-combine-columns-display-data-differently.html). In the first analysis (the primary one), I included "Text" column from "Candidate – Interactions" folder:
For the second set, I added the exact same columns as in the main analysis. The only difference is that the "Text" column was pulled from the "Job Application – Interaction Note" folder. I applied SUBSTRING("Candidate - Interaction"."Text" FROM 1 FOR 4000) formula to both Text columns to clear format:
However, when I navigate to the Results tab, the analysis returns the following error: "inconsistent datatypes: expected - got CLOB"
I couldn't find any video tutorials on how to use the Union function, so I am not even sure I am using it correctly. How can I merge the data from "Candidate – Interactions Text" column and "Job Application – Interaction Note Text" column into one?
Best Answer
-
Hi @Ulitka,
Can you please try following formulas in the corresponding Text columns and see if it is executing without error or not?
CAST(SUBSTRING("Job Application - Interaction Note"."Text" FROM 1 FOR 400) AS CHAR(400))
CAST(SUBSTRING("Candidate - Interaction"."Text" FROM 1 FOR 400) AS CHAR(400))Hope this help.
Thank you.
2
Answers
-
Hi @Ulitka,
Quick Question:
If you execute the union queries individually, is it running without error?
Can you please also share your Report Catalog file so that we can replicate the issue in our end to find a probable resolution?
Thank you!
0 -
Thank you very much, this solved the problem!
1 -
Glad you found it useful.
Thank you very much, @Ulitka!
0



