G
Guest
I have a query that pulling orders by container. However, I need to assign a
line number to each order in the container.
Example
ToteNumber OrderNumber LineNum
25639 CN48963 1
25639 CN48536 2
25693 CN45262 1
25794 CN45360 1
25794 CN45868 2
I tried the following code:
Expr1: (SELECT tblTotes.ToteNumber, (SELECT Count(*) FROM tblTotes AS T
WHERE T.ToteNumber =tblTotes.ToteNumber And T.OrderNumber
<=tblTotes.OrderNumber
ORDER BY T.ToteNumber) as LineNum)
When I try to run the query, I get the error message that I am missing
something in the select statement.
Any help would be appreciated.
line number to each order in the container.
Example
ToteNumber OrderNumber LineNum
25639 CN48963 1
25639 CN48536 2
25693 CN45262 1
25794 CN45360 1
25794 CN45868 2
I tried the following code:
Expr1: (SELECT tblTotes.ToteNumber, (SELECT Count(*) FROM tblTotes AS T
WHERE T.ToteNumber =tblTotes.ToteNumber And T.OrderNumber
<=tblTotes.OrderNumber
ORDER BY T.ToteNumber) as LineNum)
When I try to run the query, I get the error message that I am missing
something in the select statement.
Any help would be appreciated.