Zero Tolerence Posted August 22, 2005 Posted August 22, 2005 With Lasso 8, you can use a "-Distinct" command to call only distinct records in mySQL however, this command is not supported by Filemaker. Basically this Distinct command only returns unique values. I have a database, with a "submitted_Date" Field, there can be numerous records with the same submitted date, I would like to only return that submitted date one time however. Just wondering if anyone knew if this was possible with Lasso 8?
Steve T. Posted August 23, 2005 Posted August 23, 2005 Hmmm.... I hear Lasso's pretty versatile, so if it has some kind of looping mechanism, you might be able to loop and compare to the previous value and skip it if it is the same as the previous value... something like... y='novalue' loop 1 to nrecords .. x=[field:myfield]......// x is equal to the field value .. if x != y ..................// if they are not equal to each other .. .. [record] .. .. [field:myfield] .. .. [/record] .. y = [field:myfield]....// y is set to compare with x on next loop endloop I think that's right, anyway. I saw in another post how you can define variables in Lasso with the [var:] tag. If there's a loop of some kind, I think you'll be alright, eh? Here's hoping! --ST
Zero Tolerence Posted August 25, 2005 Author Posted August 25, 2005 I found an easier way, thanks tho. I am now doing it through Filemaker. I just created a vaule list based on the field I wanted only distinct values returned from, since they don't duplicate, it works just great.
Recommended Posts
This topic is 7299 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