If I understand correctly, you want the formula of the computed field in MS SQL Server ?
however, you cross-posted in MySQL, so please clarify
Main Topics
Browse All Topicscan I write a n execute SQL' statement to query into the field definition for a calculated field? If so, what is the format in the calculated field 'options' dialogue?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
note: this article should give the information, registration is required, though:
www.sqlservercentral.com/a
It's a FileMaker database. I've set up ODBC connections to other databases and use SQL queries in the FM script definitions to select, insert, update, etc. All of those SQL queries rely on an action to trigger to the script. What I'd like to do is set up a field in FM that can dynamically update itself with data from one of the other databases-- so as the data changes in the other database I would see the current data rather than having to trigger an update script. I was thinking of two options 1) defining a text field in FM that is defined to look up data, but that doesn't work because it only allows lookups to other FM databases; or 2) defining a calculation field that uses an SQL query, but I don't know if that's possible. I *think* I remember old versions of FM allowed for an "[execute (external) SQL ]..." function (or something like that. But I don't know the format and can't seem to find any information. If it's not possible to write a SQL command into a field calculation, is there another way to set up a FM field to pull live data from another database (with a pre-established ODBC connection)?
Thanks,
Dave
no, you can't have a sql query in a field definition;
a sql query can only be used in a script which will alter the field value,
and I don't remember any FM version doing this (my knowledge goes back to v2!).
I suggest you use a plug-in which allow to trigger a script upon data change in a field,
or better now, if you use version9 only, you can simply reference the odbc source as a table instance, and then use the whole calculation functions on any field of the odbc source to calculate the fm fields. all you need is a common field to make the relationship/join.
Business Accounts
Answer for Membership
by: fsilva79Posted on 2007-10-25 at 13:24:21ID: 20151076
in what lenguage are your programming?
be more explicit in your question please, you give no affordable info to the post.