I have the following code set up and it was working perfectly until we added more then 10 branchs. Basicly when we went to add the 11th branch it assigned the branch id of 10. For somereason the Select Max(Branch_Num) is seeing the max of 9 when there are in fact 10 Branchs entered.
Does anyone have any clue on this one?
SELECT max(Branch_Num)+1 as MaxID
FROM dbo.Wholesale_Brokers
WHERE Broker_Code = 'D00010'
Does anyone have any clue on this one?
SELECT max(Branch_Num)+1 as MaxID
FROM dbo.Wholesale_Brokers
WHERE Broker_Code = 'D00010'