Book a Demo

Author Topic: Search use cases with no structured scenarios  (Read 4728 times)

mrblack12

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Search use cases with no structured scenarios
« on: June 29, 2016, 10:09:49 pm »
Hi,

I'm looking for a way to search for use cases for which no structured scenario has been defined yet. Trying to do something with a query that joins the t_object and t_scenarios on object_id's but then I only get the use cases where a structured scenario has been defined, and I'm looking for the ones without.

Any thoughts?

Thanx in advance
Rick

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Search use cases with no structured scenarios
« Reply #1 on: June 30, 2016, 12:02:11 am »
use something like
Code: [Select]
select * from t_object uc
where not exists (select sc.ea_guid from t_objectscenarios sc
where sc.Object_ID = uc.object_ID)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Search use cases with no structured scenarios
« Reply #2 on: June 30, 2016, 12:03:49 am »
You probably need to code some sub-select with WHERE (SELECT COUNT(*) FROM t_scenarios WHERE...) = 0
But I'm not a SQL guru like Geert.

q.

P.S. As said xD He was even a bit faster...

mrblack12

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: Search use cases with no structured scenarios
« Reply #3 on: July 02, 2016, 12:26:37 am »
Geert,

as always your solution works like a charm!

Much obliged....

Rick