Please excuse my ignorance. I am learning as I go.
I am updating a program to combine like rows and I created a cusor and then want to loop back through and the rows back to the table after deleting the originals.
My Foreach statment is getting this error. I commented eveything out and added...
Ok I am trying to make it harder than it is.
I can do this..
SELECT Code, Sum(Percentage), Min(UniqueID)
FROM myTable
GROUP BY 1
Then delete the rows in myTable and do insert my results back into yourTable to make sure those rows are the only ones there.
Thank you.
I need to modify a program and can't wrap my brain around how to do it. The program splits percentage spreads based on codes for a person. Sometimes the same code may show up twice and the program inserts two entries for the table for that code with two different percentages instead of...
Ok this may be a stupid question...so please excuse me as I am just back to programming and new to 4GL all together..
I need to modify a program and can't wrap my brain around how to do it. The program splits percentage spreads based on codes for a person. Sometimes the same code may show up...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.