Skip to content
Advertisement

Add multiplicity as rows

I use Sparx EA to build a relationship database (MS SQL Server).

The tool has a function to create charts.

I use the query:

to get

enter image description here

which is great, just for the fact that the chart doesn’t account for the multiplicity of the ActualPosts.

I can access the multiplicity with

which results in a table like:

What I’m thinking is to add the multiplicity as rows, so turn a table like this:

into

Although I don’t know how to do that.

Any thoughts?

Thanks!

UPDATE:

Seems like Sparx EA has some limitations when it comes to SQL-queries… The query HAS TO start with select, see WITH clause within EA Sparx query

Is there a workaround for provided answers?

Advertisement

Answer

This will work if the Multiplicity <= 2047

Modified CTE to Derived Table check this out

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement