I have 10 records where table1.pk1_id = table2.fk_pk1_id
I only want to select 1 record out of the 10
The 1 record with highest value for table2.pk_id2
table1 table2
pk1_id pk2_id
fk_pk1_id
I left outer join the tables on table1.pk1_id=table2.fk_pk1_id
This is what i've tried and getting error on maximum funct.
If {table1.pk1_id} = {table2.fk_pk1_id} then
Maximum({table2.pk_id2});
I only want to select 1 record out of the 10
The 1 record with highest value for table2.pk_id2
table1 table2
pk1_id pk2_id
fk_pk1_id
I left outer join the tables on table1.pk1_id=table2.fk_pk1_id
This is what i've tried and getting error on maximum funct.
If {table1.pk1_id} = {table2.fk_pk1_id} then
Maximum({table2.pk_id2});