WITH
newc AS (
    SELECT 
        * 
    FROM 
        (
            VALUES
            ('JOHNSON FARMS'),
            ('QUALITREE PROPAGATORS'),
            ('TY NURSERY INC'),
            ('CK GREENHOUSES'),
            ('DESERT HORIZON NURSERY'),
            ('PHELPS NURSERY'),
            ('R PLANTS'),
            ('STOKLEY NURSERY'),
            ('ONE FLORAL'),
            ('HUIZENGA BRO GREENHOUSE INC'),
            ('SUNRISE GREENHOUSES'),
            ('HORTECH INC'),
            ('EDGEWOOD GREENHOUSE'),
            ('DGI'),
            ('DAYNABROOK GREENHOUSES'),
            ('A&W ANNUALS'),
            ('ANDERSEN NURSERY'),
            ('BUCKHORN NURSERY'),
            ('RAZBUTONS INC'),
            ('HSU''S'),
            ('JANOSKI GREENHOUSE'),
            ('GROWERS SOLUTION LLC'),
            ('GREEN BARN INC'),
            ('HONEYMOON ACRES'),
            ('WALNUT GROVE NURSERY'),
            ('PIEPER NURSERY'),
            ('SUN NURSERIES'),
            ('D''ADDIO FAMILY NURSERY'),
            ('BOEKESTYN GREENHOUSES LTD'),
            ('GORRELL BROTHERS LLC'),
            ('EXOTIC BOTANICALS'),
            ('SPRING VALLEY NURSERY'),
            ('PINE VIEW FARM'),
            ('BROUWERS FLOWERS'),
            ('HUNTER ROAD GREENHOUSES'),
            ('CAPOGNA FLOWERS'),
            ('J FRANK GAUDET TREE NURSERY'),
            ('SALMON WHOLESALE NURSERY'),
            ('ORLANDO NURSERY INC'),
            ('ARIZONA EAST'),
            ('ALASKA GDN & PET SUPPLY RET'),
            ('TONYS GARDEN CENTER'),
            ('SESTER FARMS INC')
    ) x(cust)
)
,profile AS (
    SELECT * FROM rlarp.osm WHERE shipgrp IN (select cust FROM newc ) AND oseas = 2019
)
,checkc AS (
SELECT distinct shipgrp FROM profile
)
SELECT cust, sum(fb_qty) FROM newc LEFT OUTER JOIN profile ON shipgrp = cust GROUP by cust
