The reason for this question is probably because I don't know SQL well enough, so it probably doesn't belong on the dynamics forums.
In any case, this link https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-ref/xpp-data-query mentions that a select statement only returns one record. Which doesn't make sense to me for two reasons: 1) I understand it is good practice to use the firstonly keyword (in some cases), which implies that the select statement can return more than one record. 2) I understand the while select statement loops through the records returned by the select statement.
In the case that a select statement does return more than one record, there are other things that don't make sense. For example working with the table buffer:
if (tablebuffer.field1 == "") does not make sense if the buffer could contain more than one record, as one of the record may have an empty field1 and the other may not.
In short: I am confused on whether a table buffer can contain more than one record, which relates back to how the select statement works.
Thanks for reading
*This post is locked for comments
I have the same question (0)