on 02-19-2021 4:30 PM
Hello,
I would like to create a query to have, from my repository, all entity names and all model name of my conceptual models.
Thanks and regards.
Hi,
PMOBJT contains objects, PMRLSH contains relations between objects. If you need to list your conceptual entities TOGETHER with the models they belong to, you have to join through the PMRLSH table. Inner join on PMOBJT and PMOBJT doesn`t solve the case.
Regards,
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your help Ondrej.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your answer Ondrej,
I create this query to have the list of entities, but I don't understand how to use PMRLSH for my needs.
SELECT distinct ent.NAME
FROM [dbo].[PMOBJT] ent INNER JOIN [dbo].[PMOBJT] mod
ON ent.BRNC = mod.BRNC
WHERE ent.CLSS = 1125 --Class of entities
AND ent.NAME LIKE 'FAP%'
AND mod.NAME LIKE 'FAP%'
AND mod.VRSN = 2
ORDER BY NAME
Questions:
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Francesco,
query tables PMOBJT (contains all objects) and PMRLSH (contains relationships between objects). In PMOBJT table, you should be interested in NAME or CODE columns and of course OBJT column, which contains internal repository object IDs, which you can use to join through PMRLSH table to connect entities to their models. Don`t forget to restrict objects from PMOBJT table only to last version of each object by using LVRS = 1.
Good luck and let me know if you need more help.
Regards,
Ondrej Divis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.