Hi all,
I had table with following data
Table
f1 f2 f3
1 10 AB
1 11 WW
2 10 DD
2 11 DD
f3 is memo field
I had to retrieve data by grouping records based on f1 value
and i had to display f3 value as "-" if all f3 values for a f1 are distinct.
If all f3 values contains the same value then i should display that value.
I should get output like this
f1 f3
1 -
2 DD
I tried a lot by taking the distinct count of the records and displaying - when count is > 1
but i am not able to succeed.
please any one give the solution.
waiting for your help.
Thanks
I had table with following data
Table
f1 f2 f3
1 10 AB
1 11 WW
2 10 DD
2 11 DD
f3 is memo field
I had to retrieve data by grouping records based on f1 value
and i had to display f3 value as "-" if all f3 values for a f1 are distinct.
If all f3 values contains the same value then i should display that value.
I should get output like this
f1 f3
1 -
2 DD
I tried a lot by taking the distinct count of the records and displaying - when count is > 1
but i am not able to succeed.
please any one give the solution.
waiting for your help.
Thanks