H
Hugh self taught
Hi code experts,
I use the following query
SELECT Left([Nat_Reg],2) AS PrvAbr, Max(Right([Nat_Reg],3)) AS MaxNum
FROM Competitors
GROUP BY Left([Nat_Reg],2);
to determine the last number part of the register number. However as time
goes by people change locale & their register number has to be changed so I
end up with gaps in the number sequence.
Is it possible to write a query that will give me those numbers? Then I can
run a query on that to determine the smallest number to re-assign
I use the following query
SELECT Left([Nat_Reg],2) AS PrvAbr, Max(Right([Nat_Reg],3)) AS MaxNum
FROM Competitors
GROUP BY Left([Nat_Reg],2);
to determine the last number part of the register number. However as time
goes by people change locale & their register number has to be changed so I
end up with gaps in the number sequence.
Is it possible to write a query that will give me those numbers? Then I can
run a query on that to determine the smallest number to re-assign