我需要将许多查询和函数从Progress / 4GL转换为SQL。
你能帮我开始吗?这里是我需要转换的4GL语句之一。
for each Part where (
Part.NonStock = false AND
Part.InActive = false AND
Part.QtyBearing = true) no-lock ,
each PartWhse outer-join where (
Part.Company = PartWhse.Company and
Part.PartNum = PartWhse.PartNum) no-lock ,
each PartCost outer-join where (
Part.Company = PartCost.Company and
Part.PartNum = PartCost.PartNum) no-lock .您能解释一下4GL位,并给出一些关于SQL将是什么样子的提示吗?
我有一些SQL知识,但几乎没有4GL知识。
发布于 2015-09-18 13:24:52
select *
from part p
left outer join partwhse w on p.Company = w.Company
left outer join partCost c on p.Company = c.Company and p.PartNum = c.PartNum
where p.NonStock = false
and p.Inactive = false
and p.QtyBearing = true;无锁位只会将(无锁)添加到表声明中,这不是一个好做法,除非真的需要,否则我会避免的。
https://stackoverflow.com/questions/32652828
复制相似问题