Advertisement

02.05.2007 at 11:56AM PST, ID: 22150223
[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.8

Find Duplicates query help!!!

Asked by farmingtonis in Microsoft Access Database

Tags: , ,

Here is a 'Find Duplicates' report I run from Access.  I am looking for all SalesID with a count greater than 1.  Below is a sample of what I get.

SalesID        Date            Time     REGION             CC      CITY         BID          BID2    BID3   BID4           FINAL
12345        04-Feb-07      02-01-07   GA          US      richmond   ABC12            F       0       0            YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABC12            F       0     5.01        YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD              F         0                    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD3            F       0      19.06      YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD4            F       0       4.17       YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD5            F       0        50              NO
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD6            F       0       3.04    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD7            F       0       3.03    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD8            F       0       3.09    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD8            F       0       3.06    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD8            F       0       3.02    NO

As you can see the BID field is producing duplicates.  I don't want the duplicates.  below is what I want it to look like.


SalesID        Date            Time     REGION             CC      CITY         BID          BID2    BID3   BID4           FINAL
12345        04-Feb-07      02-01-07   GA          US      richmond   ABC12            F       0     5.01        YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD              F         0                    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD3            F       0      19.06      YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD4            F       0       4.17       YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD5            F       0        50              NO
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD6            F       0       3.04    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD7            F       0       3.03    YES
12345        04-Feb-07      02-01-07   GA          US      richmond   ABCD8            F       0       3.09    YES

I only want one instance of the BID when searching for duplicates on SalesID.  All of the other columns don't interest me.  This is driving me crazy.  Below is the 'Find Duplicates' SQL i am using.


SELECT [SALES Report].SalesID, [SALES Report].Date, [SALES Report].Time, [SALES Report].REGION, [SALES Report].CC, [SALES Report].BID, [SALES Report].UID, [SALES Report].BID, [SALES Report].BID2, [SALES Report].BID4, [SALES Report].FINAL
FROM [SALES Report]
WHERE ((([SALES Report].SalesID) In (SELECT [SalesID] FROM [SALES Report] As Tmp GROUP BY [SalesID] HAVING Count(*)>1 )) AND (([SALES Report].Date) Between [From] And [To]))
ORDER BY [SALES Report].SalesID;

Help
Start Free Trial
[+][-]02.05.2007 at 12:10PM PST, ID: 18470784

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.

 
[+][-]02.05.2007 at 12:11PM PST, ID: 18470795

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.

 
[+][-]02.05.2007 at 12:15PM PST, ID: 18470832

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.

 
[+][-]02.05.2007 at 12:27PM PST, ID: 18470922

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.

 
[+][-]02.05.2007 at 12:33PM PST, ID: 18470971

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
Tags: duplicates, count, find
Sign Up Now!
Solution Provided By: matthewspatrick
Participating Experts: 2
Solution Grade: C
 
 
[+][-]02.05.2007 at 12:33PM PST, ID: 18470978

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.

 
[+][-]02.05.2007 at 12:34PM PST, ID: 18470986

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.

 
[+][-]02.05.2007 at 12:43PM PST, ID: 18471084

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.

 
[+][-]02.11.2007 at 07:54AM PST, ID: 18510450

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.

 
[+][-]02.11.2007 at 10:47AM PST, ID: 18511034

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.

 
[+][-]02.12.2007 at 12:51PM PST, ID: 18518373

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