diff --git a/schema/cbp.xml b/schema/cbp.xml index 48c802d..d049a13 100644 --- a/schema/cbp.xml +++ b/schema/cbp.xml @@ -11,6 +11,27 @@ + + + + ("id_naics", "description_naics") + (0, "Unknown levels") + (1, "Sector") + (2, "Subsector") + (3, "Industry Group") + (4, "Industry") + (5, "National Industry") + + + + + + IF(num_digits = 2, 'Sector', + IF(num_digits = 3, 'Subsector', + IF(num_digits = 4, 'Industry Group', + IF(num_digits = 5, 'Industry', + IF(num_digits = 6, 'National Industry', ''))))) AS classification + TIME