進行状況アプリケーションでストレートSQLステートメントを実行するための構文は何ですか?
SELECT count(distinct myField2) FROM myTable WHERE myField = myVariable);
for eachを使用してこれを行う方法を理解しましたが、それでもこのコマンドを実行したいと思います。それぞれにaを使用する:
def var iTmpCount as int no-undo.
for each myTable no-lock where myField = myVariable break by myField2:
if first-of (myTable.myField2) then
iTmpCount = iTmpCount + 1.
end.