Skip to content

Tag: oracle

SQL – Join with keys separated by pipe

TABLE_A TABLE_B How can I join table A and B to get all those who helped in the cargo? Will I need to write a function? I did not develop the program. I’m creating a dashboard and need that info. Using ORACLE 11g DB CONCLUSION — SOLVED After a bit of research and help of friends I was able to

Oracle SQL Recursive Query When FieldType is Subpage

I have a table PanelDefn which has list following fields I would like to write a query which recursively gives the data for SubPanel when I query for Panel. It means whenever we encounter FieldType=11 , we need to have recursive query for that. I tried using connect-by. Answer I guess you need below query &#8…

Fetch multiple rows with PL/SQL procedure

Procedure: This procedure works for me. I am executing the procedure with below code: Execution: I have to call the procedure in java with JDBC. So how can I call the procedure in java by above execution code? Answer Use a collection (which you can create using CREATE TYPE … AS TABLE OF …) or VARR…

insert XML request into clob column using Oracle

I do have XML request as below: I wanted to insert it into a table in clob column but due to double quotes (” “) it is not insertable and below error is observed . SQL Error: ORA-01756: quoted string not properly terminated it is not insertable. Please suggest Answer Oracle uses single quotes to d…

Oracle SQL3 3 nesting tables insert problem

I’m making an SQL3 script where I create types and then create tables and nested tables. The prolem I’m getting happens when I want to insert a row where it says : ORA-00932: inconsistent datatypes: expected UDT got CHAR this is an online reproduction of the problem where the types and tables are …

Oracle SQL Unique Constraint Violated

I need to create tables and input values. All but two rows when inserted give me an error, Unique Constraint Violated. The last row in DEPT_LOCATIONS table and the second to the last row in DEPENDENT table. I’m not sure why these rows aren’t being added because other rows in the same table are. He…