[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

9.0

SQL Rows Contain Duplicates

Asked by r270ba in SQL Query Syntax, SQL Server 2005

I have a query that I know why the rows are returning duplicates.  I just can't figure out how to do my joins so that they will not.  If you notice in the query and results below, the Received Unit Cost and Purchase Unit Cost are repeated.  Any help to fix this is appreciated.  The results should just return 3 rows.

*Query and Results below*
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
======QUERY=======
select a.po_number, c.poptype, po_date, vendor_id, vendor_name, d.itemnmbr, d.itemdesc, d.qtyorder, b.unitcost as 'Received Unit Cost', d.unitcost as 'Purchase Unit Cost',c.user2ent from tspvpurchaseorder a
join pop30310 b
on a.po_number=b.ponumber
join pop30300 c
on b.poprctnm=c.poprctnm
join pop10110 d
on a.po_number=d.ponumber
where a.po_number='p016374'
======QUERY======= 
======RESULTS======
P016374          	3	2009-10-06 00:00:00.000	S&R01          	DK50SE HST.RAB                 	Kioti 49HP, Diesel 4WD w/Turf Tires                                                                  	2.00000	20404.77000	17657.80000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KB2485.RAB                     	Kioti Backhoe                                                                                        	1.00000	20404.77000	5611.92000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KL401.RAB                      	Kioti Front End Loader                                                                               	1.00000	20404.77000	3603.60000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	DK50SE HST.RAB                 	Kioti 49HP, Diesel 4WD w/Turf Tires                                                                  	2.00000	6470.25000	17657.80000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KB2485.RAB                     	Kioti Backhoe                                                                                        	1.00000	6470.25000	5611.92000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KL401.RAB                      	Kioti Front End Loader                                                                               	1.00000	6470.25000	3603.60000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	DK50SE HST.RAB                 	Kioti 49HP, Diesel 4WD w/Turf Tires                                                                  	2.00000	5222.27000	17657.80000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KB2485.RAB                     	Kioti Backhoe                                                                                        	1.00000	5222.27000	5611.92000	rwatson1       
P016374          	3	2009-10-06 00:00:00.000	S&R01          	KL401.RAB                      	Kioti Front End Loader                                                                               	1.00000	5222.27000	3603.60000	rwatson1         
======RESULTS======
[+][-]11/04/09 12:43 PM, ID: 25743678Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 12:43 PM, ID: 25743682Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 12:45 PM, ID: 25743695Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 12:45 PM, ID: 25743699Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 12:47 PM, ID: 25743725Accepted Solution

View this solution now by starting your 30-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, SQL Server 2005
Sign Up Now!
Solution Provided By: DanielWilson
Participating Experts: 2
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625