SELECT b.*,
a.jeopCodeId,
a.JeopCodeDetail
FROM storm_jeopinfo a,
storm_orders b
WHERE a.ordernumber IS NOT NULL
AND a.ordernumber = b.order_number
AND b.Installed_dt IS NOT NULL
AND b.CUST_SIGN_DT BETWEEN CONVERT(date, '2012-06-01', 102)
AND CONVERT(date, '2013-04-30', 102)
UNION ALL
SELECT b.*,
a.jeop_code,
a.jeop_desc
FROM storm_bpm_jeops a,
storm_orders b
WHERE b.order_number = a.Order_number
AND b.srvc_order_unit = a.srvc_order_unit
错误消息:将 varchar 值“JEOP-008”转换为数据类型 int 时转换失败。
它在接下来的专栏中继续。我无法成功执行此查询。