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)
 JOIN Limited to 1

Author  Topic 

inrsence
Starting Member

48 Posts

Posted - 2001-05-14 : 20:00:28
Hi,

I'm trying to write a query that will let me do something like this:

SELECT A.Name,B.Address
FROM Table1 A LEFT JOIN Table2 B ON A.ID = B.AID

The trick is that even though some of the elements from A have multiple records in B, I only want to return one of them so that if there are 50 records in A, I want to get back only 50 records in my query.

Is there an easy way to do this?

Thanks,
Greg
   

- Advertisement -