Administration manual ยท Staircase

Cumulative keys of a hierarchy

Cumulative keys of a hierarchy Hierarchy Zona, Provincia and Municipio: the columns of each level begin with those of the level above (COD_ZONA, then COD_PROVINCIA and then COD_MUNICIPIO) and each level has its auxiliary table. level above level above auxiliary table auxiliary table auxiliary table Zona Columns: COD_ZONA AUX_ZONAS Provincia Columns: COD_ZONA + COD_PROVINCIA AUX_PROVINCIAS Municipio Columns: COD_ZONA + COD_PROVINCIA + COD_MUNICIPIO AUX_MUNICIPIOS the same columns as the level above, in the same order the level's own column