Nice Job everyone.
I have been working on creating a DD for a new app for a few days (vendor could not provide).
The last blog code with the sub-query is okay, but I have to mention that in our app's db_name.schema.table two elements indicated as PK.
This may not occur with every DB, but I will find out why and post.
Kudos to those who extend their talent.