Advertisement

07.07.2008 at 03:11PM PDT, ID: 23544970
[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!

8.6

MS SQL Select Statement Returning Duplicate Records

Asked by bootnumlock in SQL Query Syntax, Databases Miscellaneous, MS SQL Server

Tags: ,

I have am working on a product search script that searches 4 tables for like values. Two of the tables allow for multiple skus to be associated, so my search results are displaying multiple duplicates. Obviously the client will not appreciate his search results being bloated with multiples of the same product displaying over and over, but this particular script is a bit over my head, can anyone help me solve how to do this? I'm including a code snippet of the select statement I have developed so far. Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
SELECT  x.searchTerms, x.cProductHeader, a.descriptionLong, a.sku, catalog_INDEX.cIndex_Tag
 
FROM    Products AS a INNER JOIN
            catalog_MASTER_DATA AS x ON a.sku = x.sku INNER JOIN
            catalog_INDEX_ASSOCIATIONS ON x.sku = catalog_INDEX_ASSOCIATIONS.sku INNER JOIN
            catalog_INDEX ON catalog_INDEX_ASSOCIATIONS.tagID = catalog_INDEX.id
 
WHERE     
((a.active = - 1) AND (x.searchTerms LIKE '%polymer%')) OR
((a.active = - 1) AND (x.cProductHeader LIKE '%polymer%')) OR
((a.active = - 1) AND (a.descriptionLong LIKE '%polymer%')) OR
((a.active = - 1) AND (a.sku LIKE '%polymer%')) OR
((a.active = - 1) AND (catalog_INDEX.cIndex_Tag LIKE '%polymer%'))
 
ORDER BY a.descriptionLong
[+][-]07.07.2008 at 03:21PM PDT, ID: 21949147

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

Zones: SQL Query Syntax, Databases Miscellaneous, MS SQL Server
Tags: MS SQL Server 2000, IE 7
Sign Up Now!
Solution Provided By: elimesika
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.07.2008 at 04:11PM PDT, ID: 21949383

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.

 
[+][-]07.08.2008 at 05:47AM PDT, ID: 21953209

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.

 
[+][-]10.17.2008 at 02:14PM PDT, ID: 22745356

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]10.25.2008 at 07:12AM PDT, ID: 22803322

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

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