Harris

Conceptual image of two linked chains in black and orange, symbolizing connection and strength.

About Database Constraints

Most data problems don’t come from bad SQL — they come from bad assumptions. And the worst one is believing that constraints can be “handled in the application.” They can’t. They never could. The moment data is touched by an ETL job, a script, an integration, a migration, or a future rewrite, every application‑level rule evaporates. The database is the only place where integrity actually persists. Datatypes, keys, foreign keys, checks, and assertions aren’t optional features — they’re the backbone of reliable systems. If the data matters, the constraints belong in the database. Full stop.

About Database Constraints Read More »

Nested with clauses oracle 26ai

Nesting With Clauses in Oracle database 26ai

BACKGROUND Consider this post from stackoverflow. As seen above, Nesting of with clauses is not possible in oracle and while the examples in the answer are simple and straightforward allowing you to define multiple different subqueries, sometimes (and I know because I’ve been there) you actually need to or at least wish you would nest

Nesting With Clauses in Oracle database 26ai Read More »

pluggable database

Create a pluggable database(19c) from a non-container database.

With the announcement of 26ai on premises, many people (myself included) using 19c will be looking to migrate their existing databases over to 26ai. As announced earlier, 19c is the last release in which the option to use a non-CDB is allowed; from 21c onwards, it’s mandatory to change your database architecture to multitenant. Therefore, anyone

Create a pluggable database(19c) from a non-container database. Read More »

Conditional Filter For Aggregates In Oracle Database 26ai

BACKGROUND Consider this problem from LeetCode: leetcode_db_1158, about figuring out for each user, the number of orders they made in 2019. The code below can create the sample data set needed for the question. Here’s an Oracle SQL solution to this problem Notice the left join to a subquery highlighted above! This is done to

Conditional Filter For Aggregates In Oracle Database 26ai Read More »