overview: I have a table that has revenue associated with each serial number, so a serial number can be duplicated in the system. What I want to do is if the install revenue is >0 and the Order_code is either 12 or 06 then update the install_units to 1 on the first instance of the serial number.
I was able to isolate the serial numbers using a select statement but it uses totals to limit the list to 1 instance of the serial number
Order type - Group By
Serial Number - Group BY
Install revenue - MAX
Is there a way to have this be an update statement somehow even though it uses totals?
Thanks
Bret