Hi there,
I have a database containing a BUILDING table which is related to a BUILDING_FUNCTION table.
A building can have 0-n functions associated to it (i.e. Schools, Public buildings, etc).
But it's more complicated than that. The functions are timely (Origin, Intermediary, Present)
And there are three levels of details in the functions (I-basic, II-medium, III-detail)
Here is an example simplied dataset for only one building, number 14...
I need to denormalize this table to get only one entry per building.
Here is the desired result.
Note that in INTERMEDIARY functions, there are two functions listed. This is due to the fact that the a building can have more than one set of functions for each timely period. In the example above, where the TIME attribute has "2 Intermediary", you have two sets of basic-medium-detail FUNCTION_LEVEL.
I'm joining an excel spreadsheet as sample data.
Thanks a ton in advance for your help !
PS. This is somewhat related to my previous post but the added complexity is puzzling me. https://community.safe.com/s/question/0D54Q00009X7KroSAF/denormalize-rows-into-repetitive-numbered-columns