Hey guys,
I am currently trying to solve a problem in my database dealing with duplicate records. Here's the situation. I have a database for employee tax information, and they wanted to add a field for a checkbox. So I created the field with a YES/NO value. Then I ran an update query to set the values to YES At that point, I discovered that some employees have two different tax amount records. My query set the value to YES for both records. Well of course, they only want a checkbox on one of the records. I have to find a way to run another update query that will set the value to NO for the second record.
Here's an example dummy record
SSN NAME AMOUNT TOTAL DIST
12345894 JENKINS, DAVID $23.55 YES
12345894 DAVID L JENKINS $241.22 YES
I want a query to set the record with $241.22 to NO. The only thing I can find different between the two records is that the 2nd record has a different name format. Is there any way to write a query that can look for names with a comma separation?
Thanks for any help here.
I am currently trying to solve a problem in my database dealing with duplicate records. Here's the situation. I have a database for employee tax information, and they wanted to add a field for a checkbox. So I created the field with a YES/NO value. Then I ran an update query to set the values to YES At that point, I discovered that some employees have two different tax amount records. My query set the value to YES for both records. Well of course, they only want a checkbox on one of the records. I have to find a way to run another update query that will set the value to NO for the second record.
Here's an example dummy record
SSN NAME AMOUNT TOTAL DIST
12345894 JENKINS, DAVID $23.55 YES
12345894 DAVID L JENKINS $241.22 YES
I want a query to set the record with $241.22 to NO. The only thing I can find different between the two records is that the 2nd record has a different name format. Is there any way to write a query that can look for names with a comma separation?
Thanks for any help here.