I have three records and I want to affect the highest amount I get with the MAX (Quantity). to make a subtraction to the greater amount. but it affects the three records that I have. I take care to bring the last amount also get its id to affect only that record?
Greetings
This is my query to get the id EntryEntryDetID = 1 to update the largest amount that in this case is 1166.66 of the EntryEntryDetID 1.