Jump to content
Server Maintenance This Week. ×

largest number


This topic is 4727 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.