Top "Oracle" questions

Oracle Database is a Multi-Model Database Management System created by Oracle Corporation.

Oracle SQL query: Retrieve latest values per group based on time

I have the following table in an Oracle DB id date quantity 1 2010-01-04 11:00 152 2 2010-01-04 11:00 210 1 2010-01-04 10:45 132 2 2010-01-04 10:45 318 4 2010…

sql oracle greatest-n-per-group top-n
Find if a column in Oracle has a sequence

I am attempting to figure out if a column in Oracle is populated from a sequence. My impression of how …

oracle metadata
TypeORM subqueries

Based on typeORM docs on using subqueries, there are explained how to create subqueries. Example: const qb = await getRepository(Post).…

sql oracle typeorm typeorm-datamapper
How to add a new column with foreign key constraint in a single statement in oracle

How to add a new column with foreign key constraint in a single statement in oracle?Can any one give …

sql oracle foreign-keys ddl
inner join with group by expression in oracle sql

I am new to sql, any help is appreciated. I have two tables, employees and jobs. employees contain a variable …

sql oracle group-by inner-join
pl/sql object types "ORA-06530: Reference to uninitialized composite" error

i have a type as follows: CREATE OR REPLACE TYPE tbusiness_inter_item_bag AS OBJECT ( item_id NUMBER, system_…

oracle plsql user-defined-types
does foreign key always reference to a unique key in another table?

Is it not possible that foreign key(single column) in a child table references to a parent key which has …

oracle key parent
SQL Loader script help with adding SYSDATE, USER

I'm trying to load data from a file and I want to set CREATED_DATE and UPDATED_DATE to SYSDATE …

sql oracle csv sql-loader controlfile
SELECT as much data from CLOB to VARCHAR2 as possible, with multibyte chars in the data

Multi-byte characters had caused me a lot of pain. Any suggestion for this problem? I have a CLOB field that …

sql oracle substr clob multibyte
ORA-00980 synonym translation no longer valid in PLSQL

I've got a synonym on a remote Oracle database that I can access in SQL over a database link, eg, …

oracle plsql synonym