Skip to content
Advertisement

Tag: oracle11g

Split String using SQL’s REGEXP_SUBSTR

I need to split a string like this (NUL) means a character with ASCII value 0. Don’t know how to type it here. I need to split this when (NUL)~ occurs. So the expected result after split is RANDOM(NUL)THIS_SHOULD_BE_SPLIT THIS_IS_NEW(NUL)STRING THIS_IS_ANOTHER_STRING(NUL) Using OracleDB not sure how it handles NULL characters and if it is possible to split it. To split

Oracle SQL UNION alternative

I’m using ORACLE SQL (11g), lets assume we have a table named TRANSMISSIONS which has field that holds file sizes I want to perform various aggregate functions on various partitions let’s say for different file sizes. However I want the partitions to be cumulative. So a 10 KB file will be both in the <=500000 bytes partition and the <=2000000000

ORA-02290: check constraint violated

I keep getting the message “ORA-02290: check constraint violated” whenever I try to insert values into my table. Here’s the code for the table STORE: And here’s the INSERT statements I am trying to accomplish: It has created the 4th, 6th, and 7th values, but not the rest. What is going wrong? Answer You are violating the CHECK constraint as

Trying to run script through Oracle 11g

I am trying to run SQL statements in the Oracle 11g Express edition, where I am to create tables. Here is my SQL code: It only ends up processing 4 statements and I keep getting these error messages: I am wholly unfamiliar with Oracle 11g. I am unsure if I am using the correct application in it for my assignment.

Correlated Subquery working differently for Oracle 12c and 11g

We have a generic table that holds multiple records (DDL and DML below): Below are the records: The query below works in 12c, but Errors out in 11g: It errors out with ORA-00904: “AR_TRX”.”TRX_ID”: invalid identifier. I believe this is caused by the correlated subquery AR_TRX linked to the SELECT statement (see comments “– ERROR HERE” above). I need this

Advertisement