CREATE VIEW "public"."material_search_view" AS (select "MATKL", "ZZNAME", COALESCE("MATKL", '') || ' - ' || COALESCE("ZZNAME", '') as "display_text" from "mdg"."MATERIAL_MASTER_PART_MATL" where 
      "mdg"."MATERIAL_MASTER_PART_MATL"."MATKL" IS NOT NULL 
      AND "mdg"."MATERIAL_MASTER_PART_MATL"."MATKL" != ''
      AND "mdg"."MATERIAL_MASTER_PART_MATL"."ZZNAME" IS NOT NULL 
      AND "mdg"."MATERIAL_MASTER_PART_MATL"."ZZNAME" != ''
     group by "mdg"."MATERIAL_MASTER_PART_MATL"."MATKL", "mdg"."MATERIAL_MASTER_PART_MATL"."ZZNAME" order by "mdg"."MATERIAL_MASTER_PART_MATL"."MATKL", "mdg"."MATERIAL_MASTER_PART_MATL"."ZZNAME");