SELECT A.PD_END_DT Recent_PD_END_DT,
B.PD_END_DT Last_PD_END_DT,
A.NRX_CNT - B.NRX_CNT DELTA
FROM wkly_lnd.lnd_wkly_plan_rx_summary A,
wkly_lnd.lnd_wkly_plan_rx_summary B
WHERE a.MKT_I D =b.MKT_ID;
答案 0 :(得分:5)
你有一个空间
WHERE a.MKT_I D =b.MKT_ID;
应该是:
WHERE a.MKT_ID =b.MKT_ID;