Having an issue where the select case statement is causing the rest of the select statement to be invalid?? It says syntax error. What I am attempting to do is have another fields data be added to another field if it is blank.
select
CASE
WHEN (a.billto_addr1 = ' ' )
THEN a.BILLTO_ADDR3
ELSE a.billto_addr1
END
a.JOB_NUMB,
a.JOB_NUMB_SPARE,
a.LINE_NUMB,
a.SHIP_LINE_NUMB,
a.SHIP_NUMB,
a.RECORD_TYPE,
a.PACK_DELIVER_FLAG,
a.TOT_EST_SHIP_CODE,
a.est_ship_qty,
a.RDAT_SHIPPED,
a.shipto_name,
a.shipto_addr1,
a.shipto_addr2,
a.SHIPTO_ADDR3,
a.shipto_city,
a.shipto_state,
a.shipto_zip,
a.shipto_attn,
a.shipto_fax,
a.shipto_phone,
a.ship_via_desc,
b.uom as uom,
b.fg_item_numb as fg_item_numb,
b.fg_item_desc as fg_item_desc,
b.order_qty1 as order_qty1,
b.tot_invc_qty as tot_invc_qty,
b.under_pct as under_pct,
b.over_pct as...