If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > FileMaker > Find distinct records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-06, 10:07
Jenny_Leipzig Jenny_Leipzig is offline
Registered User
 
Join Date: Apr 2006
Posts: 5
Find distinct records

Is there an easy way to find distinct records, i.e. types rather than tokens, or do I have to write a loop which throws out the duplicates?
Reply With Quote
  #2 (permalink)  
Old 05-12-06, 21:30
chriscozi chriscozi is offline
Registered User
 
Join Date: Apr 2004
Posts: 61
Distinct records

Well, if I understand your question, this is how relational databases excel.

You can use a 'self-join' relationship to have records show on a layout when criteria (in a global field) matches. As you change the 'match' field the displayed records change.

Does that help?
If you are more precise with an example we can be more precise with answers.

Reply With Quote
  #3 (permalink)  
Old 05-15-06, 03:48
Jenny_Leipzig Jenny_Leipzig is offline
Registered User
 
Join Date: Apr 2006
Posts: 5
dinstinct records

Here is an example:
I have several blue cars, red cars etc. in the DB (field "color"), each car is a record. Now a script should tell me how many different colors I have, i.e. 3 if all cars are either blue, red or green, and 2 if they are either blue or red, no green cars.
Reply With Quote
  #4 (permalink)  
Old 05-15-06, 09:22
<Ender> <Ender> is offline
Registered User
 
Join Date: Aug 2005
Location: Minneapolis, MN
Posts: 56
There are different ways to do this, but it depends on what you mean by:
Quote:
Now a script should tell me...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On