Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Join Help

Author  Topic 

jrockfl
Posting Yak Master

223 Posts

Posted - 2005-09-12 : 10:50:16
I working a SQL query that displays open orders and also commissions.
Let's say I have 3 tables orderheader, orderline and comm

Right now I have an inner join that between orderheader and orderline
that returns 10 records. Only 5 of those records are actually in the comm table. I'm joining the tables on the order number and when I join the comm table I get some duplicate data.

I can I only return 10 results with the comm?

I would post the query but it's actually 6 mapics tables..I need help with the concept.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-09-12 : 11:12:11
maybe you need to use max or min?
can you post the DDL, DML, expected results?


Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -