I have created a file in jBase called F.ACCOUNT with five field and
there are 100 record totally.
My requirement is to select only those records whose field values are
unique, meaning the value of one field in record1 should be different
from the value of the same field in record2.
Is there any keyword in jBase as in Oracle (sql) ; the Keyword
DISTINCT to avoid the duplicate columns from a table.
Thanks
Hi.
From the sound of it, you want to take those 100 records and get rid of any records that have the same value in the same field. At the end, you want a select list of the keys of F.ACOUNT, not the values in the field, right? If not, then you statement below will give you all the unique values from the field and make a list out them. If not, then which records are you going to drop from the list to form your unique list? Some priority or other condition? That being the case, you should be sort-selecting the list by the tested field, by some other priority (item id? Whatever). I think it would probably be faster to write a program to read in the list and spit one back out ready for the next step than it is to research this. I can’t think of any other way. Will let you know if I do.
Peter