Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
this might be a simple one:
in a user-table i have one field "Email".
In a first step: I want to identify all email addresses that have been used more than once.
In a second step: I want to count the number of appearances per email address.
Thanks for some hints!
K
If UserFile has UserID and Email, the EmailFile (see the script below) will give details of emailCount and UserIDList
UserFile:
LOAD UserID,Email,... from ...(your datasource);
EmailFile:
load Email,Count(UserID) as EmailCount, Concat(UserID,'|') as UserIDList
resident UserFile Group By Email;
Sorry, i was not clear on this one:
I want to do this in the LOAD script.
If UserFile has UserID and Email, the EmailFile (see the script below) will give details of emailCount and UserIDList
UserFile:
LOAD UserID,Email,... from ...(your datasource);
EmailFile:
load Email,Count(UserID) as EmailCount, Concat(UserID,'|') as UserIDList
resident UserFile Group By Email;
Hello NagaianK:
I was looking at your instructions regarding this post. How would I be able to filter the List Box to show only those 'email addresses' that have been used MORE than once?
Thanks
David
Hi again NagaianK:
Just to clarify the earlier email, I have adapted your solution to my own situation of course. My script purpose is to identify doctors who have the same name. The partial script is as follows:
[DOCTORS]:
Load DocNbr,
DocName,
Doc Inits,
DocName & ' ' & DocInits AS DoctorName,
.
.
[DOCCOUNTERS];
Load DoctorName,
Count(DoctorName) as DocCount,
Concat(DoctorName, '|' as DupList
resident DOCTORS group by DoctorName;
In the ListBox, I get the duplicated DoctorNames as well as those that are unique. My question is how to display only the duplicates?
Thanks
David
Probably, you may create a listbox for the expression
If(DocCount > 1,DoctorName)