I
In need of assistance
I'm using a SQL query to household names and it looks like what I have below,
but I need a way to deal with groups of names that have 3 or more names. Is
there a "Second" or "First + 1" function? I don't know that much about SQL
so I need a little help.
This is what I have so far that deals with address groups of 1 or 2. I need
something for "Having Count = 3"
Any help would be appreciated.
SELECT First([First Name]) & " and " & Last([First Name]) AS [Both First
Names],
SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
FROM SD13_Delegates
GROUP BY SD13_Delegates.MatchField, SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
HAVING (((Count(*))=2));
UNION SELECT
First([First Name]) As [Both First Names],
SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
FROM SD13_Delegates
GROUP BY SD13_Delegates.Matchfield, SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
SD13_Delegates.[Support ID]
HAVING (((Count(*))=1));
but I need a way to deal with groups of names that have 3 or more names. Is
there a "Second" or "First + 1" function? I don't know that much about SQL
so I need a little help.
This is what I have so far that deals with address groups of 1 or 2. I need
something for "Having Count = 3"
Any help would be appreciated.
SELECT First([First Name]) & " and " & Last([First Name]) AS [Both First
Names],
SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
FROM SD13_Delegates
GROUP BY SD13_Delegates.MatchField, SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
HAVING (((Count(*))=2));
UNION SELECT
First([First Name]) As [Both First Names],
SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
FROM SD13_Delegates
GROUP BY SD13_Delegates.Matchfield, SD13_Delegates.[Last Name],
SD13_Delegates.[Mail Address],
SD13_Delegates.[Mail City],
SD13_Delegates.[Mail State],
SD13_Delegates.[Mail Zip],
SD13_Delegates.[Support ID]
HAVING (((Count(*))=1));