Dani R Posted June 2, 2011 Share Posted June 2, 2011 Hi i have a sql connected to filemaker . in the table i what to run ש script the will give mק the largest number in a field . the problem is that i can not add a summery file to the table. how can i do it? Thank You Dani Link to comment Share on other sites More sharing options...
wonfuji Posted June 2, 2011 Share Posted June 2, 2011 Dani You might sort descending by that number field and go to first record. You might create a cartesian self-join on the table and create a Max(table_TABLE||x|::number) calc to return max value. (Not certain if that would work to an SQL table). You could script it: (pseudocode) Show All Go First Record Loop SetVariable($Max; Case($Max<YourNumberField; YourNumberField; $Max)) GoToNextRecord (Exit After Last) End Loop Stephen Link to comment Share on other sites More sharing options...
comment Posted June 2, 2011 Share Posted June 2, 2011 the problem is that i can not add a summery file to the table. See if this helps: http://www.filemaker.com/11help/html/odbc_ess.20.9.html#1027889 Link to comment Share on other sites More sharing options...
bcooney Posted June 2, 2011 Share Posted June 2, 2011 You can add supplemental fields to an ESS, as comment points out, however, what is your goal? I hope that you're not trying to calc a serial ID. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 4727 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now