Viewing 5 posts - 46 through 51 (of 51 total)
Try to isolate the error. Run this code out of the stored procedure and debug it to see where is the problem.
October 17, 2013 at 6:43 am
Then this should do the trick :
select
coalesce(p.period_month,r.Fromdate) as period_month,r.warehouse_code,r.item_number,r.origin_warehouse_code,r.Fromdate
from
Routing_History r
left join Period p on p.period_month= r.Fromdate
October 17, 2013 at 6:23 am
I think what you want is to query all routing_history rows and show period_month column only if available. This is a left join :
select
p.period_month,r.warehouse_code,r.item_number,r.origin_warehouse_code,r.Fromdate
from
Routing_History r
left join Period p...
October 17, 2013 at 6:08 am
fragment count 2000 means that index data is spread accross 2000 blocks of consecutive pages.
October 17, 2013 at 5:50 am
Viewing 5 posts - 46 through 51 (of 51 total)