You need to sign in to do that
Don't have an account?
Raza Syed 26
SOQL to update a custom field in account object
I have around 4000 records, and I have to update a custom field (e.g Rating) in Account object, where condition is that if value in the field is 10 update/change to "A" and if the value in a field is 20 change to "B" in all the records.
what is the best way i.e SOQL or data (Data Loader), I am new to SOQL
Thank you very much
what is the best way i.e SOQL or data (Data Loader), I am new to SOQL
Thank you very much
Granted, you'll likely have to update the fields and values I used in the example above. (For instance, I'm not sure if the 10 and 20 are numerical or string values in your use case)
Please try below code in developer console.
Please let me know if you need any more help.
Mark it as solved if it solves your question.
Thanks,
Naveen
Thanks for providing code.
10, 20 are datatype: Number
I dont have any experience in SOQL/SQL. I cut and paste your query in Developer console and try excute,
Error message: "Invalid Query , the query has to start with 'FIND' or 'SELECT'"
I would really appreciate your help.