Author Topic: [EA query] - How to detect each empty diagram with a query  (Read 1783 times)

jack89

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-1
    • View Profile
[EA query] - How to detect each empty diagram with a query
« on: April 28, 2022, 02:10:34 am »
Hi all,

is it possible to retrieve each empty diagram inside the eapx repository with a SQL query inside EA?

Thank you in advance!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13379
  • Karma: +563/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: [EA query] - How to detect each empty diagram with a query
« Reply #1 on: April 28, 2022, 03:22:43 am »
Sure, simply query all diagrams where there is no diagramObject record

Code: [Select]
select * from t_diagram d
where not exists
(select do.Instance_ID from t_diagramobjects do
where do.Diagram_ID = d.Diagram_ID)

Geert