Just following up on this, as I wonder if I'm using tagged values appropriately...

My model has the same TagName in all the class elements. I'm wondering if it's possible to modify the above SQL query to have the TagNames return as column heads, with the TagValues returning as values for those column heads for each attribute. Attributes are unique for each class

For example, if class1 has attributes att1, att2...att1 has TagNames tag1 and tag2, as does att2. I want to return tag1 and tag2 as column headers instead of just 'TagName', and have the TagValues for these TagNames return as values for these columns

If not possible, is there something else to capture these common attribute properties instead of tagged values for each of the attributes?

I've had a look at Geert's 'favourite SQL queries', and figured the SQL query below is probably the closest I can get to the above - however my SQL knowledge is almost non-existent so not sure how to expand to include the above. Can someone please assist?