baazigar
18th March 2006, 23:11
when i use the followin sql query in my program script i get the above error on compile:
************************************
select whwmd215.item,whwmd215.stoc,sum(whwmd217.mauc(1)):mauc_amnt
from whwmd215,whwmd217
where whwmd215.item = whwmd217.item
and whwmd215.cwar = whwmd217.cwar
and whwmd215.item = :w.item
and whwmd215.cwar = :w.cwar
group by whwmd215.item,whwmd215.stoc
select do
item_mauc = mauc_amnt/whwmd215.stoc
rprt_send()
endselect
******************************************
mauc in table whwmd217 is an array field not sure how to sum the mauc(1) field only. any thoughts would be greatly appreciated
************************************
select whwmd215.item,whwmd215.stoc,sum(whwmd217.mauc(1)):mauc_amnt
from whwmd215,whwmd217
where whwmd215.item = whwmd217.item
and whwmd215.cwar = whwmd217.cwar
and whwmd215.item = :w.item
and whwmd215.cwar = :w.cwar
group by whwmd215.item,whwmd215.stoc
select do
item_mauc = mauc_amnt/whwmd215.stoc
rprt_send()
endselect
******************************************
mauc in table whwmd217 is an array field not sure how to sum the mauc(1) field only. any thoughts would be greatly appreciated