J
John Welch
I have a table with these fields (and example data)
PersonID (long) OldRecordNum (long) FirstName(text)
12 12 Bob
12 342 Bob and Mary
18 18 Joe
18 99 Joe and Bill
19 19 Mark
I'm trying to write a query to pull the longest first name for each
personID, but am not succeeding. (I'm cleaning up a messy database and many
records have two names in first name field.) (I don't need help figuring out
why or why not to do it this way, thanks.)
I'd like the query to return the following:
Person ID FirstName
12 Bob and Mary
18 Joe and Bill
19 Mark
I appreciate any help people can give me with this.
-John
PersonID (long) OldRecordNum (long) FirstName(text)
12 12 Bob
12 342 Bob and Mary
18 18 Joe
18 99 Joe and Bill
19 19 Mark
I'm trying to write a query to pull the longest first name for each
personID, but am not succeeding. (I'm cleaning up a messy database and many
records have two names in first name field.) (I don't need help figuring out
why or why not to do it this way, thanks.)
I'd like the query to return the following:
Person ID FirstName
12 Bob and Mary
18 Joe and Bill
19 Mark
I appreciate any help people can give me with this.
-John