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;
views:
51answers:
1
+5
A:
you've got a space on the line
WHERE a.MKT_I D =b.MKT_ID;
should it be:
WHERE a.MKT_ID =b.MKT_ID;
Colin Pickard
2009-08-25 12:54:08
You have a good eye!
Christian13467
2009-08-25 12:54:52
I wrote the book on tiny-but-critical PL/SQL errors :)
Colin Pickard
2009-08-25 12:57:10