Advertisement

05.31.2006 at 07:04AM PDT, ID: 21869577
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Update query not working

Asked by DrewK in Microsoft Access Database

I have a table with 325K records.

This table has lots of fields with long cryptic names.

So for ease of explanation, let's say it has the following fields:

First (text)
Second (text)
Third (text)
Amount (currency)
Flag (Yes/No)

Okay, so I'm trying to set [Flag] = Yes whenever I can match duplicates in the table.

This is easy for records that match exactly across all fields.

My problem is that many of the records are duplicated EXCEPT FOR the Amount field which is negative for one record, positive for the other.

I would like to use an Update query to match these records also, setting [Flag] = Yes.

My first attempt at this was with a recursive inner join using the Abs() function around the Amount field:

UPDATE table INNER table AS table_1 ON (table.First = table_1.First) AND (table.Second= table_1.Second) AND (table.Third= table_1.Third)
SET table.Flag = Yes
WHERE Abs([table].[Amount])=Abs([table_1].[Amount]);

Although it ran without error, it failed to update all of the records.

My second attempt was to concatenate the fields together and use a subquery:

UPDATE table
SET table.Flag = Yes
WHERE (First&Second&Third&Abs([Amount]))
in (SELECT (First&Second&Third&Abs([Amount])) FROM table);

This second query was taking soooo long that I hit [CTRL]+[Pause/Break] to stop it.

Any other ideas?

TIA,

Drew
Start Free Trial
[+][-]05.31.2006 at 09:04AM PDT, ID: 16799895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 09:23AM PDT, ID: 16800031

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 09:34AM PDT, ID: 16800118

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 10:15AM PDT, ID: 16800481

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 12:35PM PDT, ID: 16801669

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 12:36PM PDT, ID: 16801678

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 01:14PM PDT, ID: 16802061

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 01:30PM PDT, ID: 16802210

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2006 at 01:43PM PDT, ID: 16802347

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.01.2006 at 05:13AM PDT, ID: 16806585

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.01.2006 at 06:15AM PDT, ID: 16807028

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Sign Up Now!
Solution Provided By: Flyster
Participating Experts: 1
Solution Grade: B
 
 
[+][-]06.01.2006 at 07:36AM PDT, ID: 16807728

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32