In non-versioned enterprise geodatabases, we can use SQL to do field calculations:
Calculate Field (Data Management)
SQL expressions support faster calculations for feature services and enterprise geodatabases. Instead of performing calculations one feature or row at a time, a single request is sent to the server or database, resulting in faster calculations.
Only feature services and enterprise geodatabases support SQL expressions. For other formats, use Python or Arcade expressions.
I mostly work in enterprise geodatabases; I live and breath SQL. For my EGDB work, I mock things up in mobile geodatabases when testing issues, ideas, etc. So I end up needing to switch to Python or Arcade to do field calculations in the mobile geodatabase, which throws a wrench into my SQL-oriented workflows.
I'd prefer to use SQL whenever I can. Additionally, SQL can also do some things better/simpler than Python or Arcade, such as subqueries.
Could field calculations with SQL be added for mobile geodatabases, similar to enterprise geodatabases?
Thanks.
Thank you to everyone showing their support for this idea.
The ability to apply SQL statements when performing calculations using the calculate field geoprocessing tool in file and mobile geodatabases was added in ArcGIS Pro 3.5. Unfortunately, an issue (described in this knowledge article) was identified in the initial release. The issue was treated with urgency and fixed in ArcGIS Pro 3.5 Patch 1 (3.5.1) released June 3, 2025. Each patch is cumulative of all previous patch fixes. It is highly recommended to apply the most current patch immediately after installing ArcGIS Pro 3.5. The ArcGIS Pro patch download(s) accessible from My Esri are equivalent to software update(s) while using ArcGIS Pro.
For more information on SQL supported in file and mobile geodatabases, refer to the documentation linked below.
Happy Mapping!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.