 SELECT DISTINCT jmdc_drug_code, dc.concept_code
 FROM aut_form_mapped a
 JOIN j
---     ON TRIM(formulation_small_classification_name) = a.concept_name
-    ON TRIM(formulation_large_classification_name) = a.concept_name
+    ON TRIM(formulation_small_classification_name) = a.concept_name
+--     ON TRIM(formulation_large_classification_name) = a.concept_name
 JOIN drug_concept_stage dc
     ON dc.concept_name = COALESCE(a.new_name, a.concept_name)
 WHERE dc.concept_class_id = 'Dose Form'

      JOIN ds_stage ds
          ON jmdc_drug_code = drug_concept_code
      WHERE who_atc_code ~ 'R01|R03'
        AND formulation_large_classification_name ~ 'Inhal'
        AND formulation_large_classification_name !~ 'Sol|Aeros'
        AND amount_unit = 'ug'
      );


      JOIN ds_stage ds
          ON jmdc_drug_code = drug_concept_code
      WHERE who_atc_code ~ 'R01|R03'
        AND formulation_small_classification_name ~ 'Inhal'
        AND formulation_small_classification_name !~ 'Sol|Aeros'
        AND brand_name = 'Meptin'
      );

