---
title: "Discussion on \"Oracle 26ai Assertions\" | Hashnode"
description: "Discussion on \"Oracle 26ai Assertions\". A real use case that takes advantage of the DB Assertions feature"
url: "https://hashnode.com/posts/oracle-26ai-assertions/6acf37891821fc662ea3d84c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Oracle 26ai Assertions](https://blog.apexapplab.dev/oracle-26ai-assertions?utm_source=hashnode&utm_medium=feed)

A real use case that takes advantage of the DB Assertions feature

Oct 14 · 6 min read · blog.apexapplab.dev  
Read the article

-   [#apex](https://hashnode.com/tag/apex)
-   [#orclapex](https://hashnode.com/tag/orclapex)
-   [#oracle](https://hashnode.com/tag/oracle)
-   [#sqlcl](https://hashnode.com/tag/sqlcl)

## Written by

[Plamen Mushkov](https://hashnode.com/@plamen9)

@plamen9 · London, UK

  
[View profile](https://hashnode.com/@plamen9)

Building Oracle APEX applications. Writing about tech.

Creating apps built with ❤️ using Oracle APEX. PL/SQL dev. Exploring the AI and ML world. Keen on front-end, visual arts and new technologies. Love travel, sports, photography.

## Responses 1

Markdown supported · ⌘↵ to post

[Kim Berg Hansen](https://hashnode.com/@kibeha)

[Oct 29](https://hashnode.com/posts/oracle-26ai-assertions/6acf37891821fc662ea3d84c/comment/6ae34210a689abae0d3f3e74)

Nice use case, Plamen 👍.

I've explored similar use case with a "foreign key" to multiple parents. (Can't add links here on hashnode yet - have to wait a month, so go to my kibeha dot dk site and look for post "Assertions for data integrity on a less-than-ideal data model". Sorry for inconvenience...) Near the end of that post, my "Attempt 4" works the same way as your "assertion flight\_aircraft\_one\_source".

But I have another method in "Attempt 5" where I create individual assertions for each parent by doing a filter in the ALL clause. I _think_ that method ought to perform better when the database validates the assertion, but not certain.

However, that method does require that there's a way in the child table to know in which parent it should look for the key. My use case has this, yours does not. So you cannot use my method 🙁.

Cheerio /Kim
