【发布时间】:2019-06-03 21:40:43
【问题描述】:
我已经写了一个程序,我需要用今天的记录来计算昨天的记录(从 12:00 到 05:00)
for each womf_worder of sfcf_au_ship where
womf_worder.word_production_status EQ "B" and
womf_worder.word_build_date EQ today - 1 and
womf_worder.word_build_time GE tt_shift.shft_start_hour and
womf_worder.word_build_time LE tt_shift.shft_stop_hour
no-lock:
assign i = i + 1.
end.
但问题是我只需要根据今天的记录计算那些提到的时间(12:00 AM 到 05:00 AM)的订单。你能帮帮我吗?
【问题讨论】:
-
对不起,我不太明白你想做什么。您的代码示例在某个时间间隔内计算昨天创建的记录(?)。 “用今天的记录计算……”到底是什么意思?
-
是的,我想将昨天的记录与今天的记录一起计算,即仅将昨天的记录与今天的记录一起计算到凌晨 05:00
-
如果您提供输入数据样本和预期输出可能会有所帮助
-
我同意 Stefan 的观点,这可能更容易理解你的意思。
标签: openedge progress-4gl