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
 General SQL Server Forums
 New to SQL Server Programming
 Outer Join SQL

Author  Topic 

jmodel32345
Starting Member

2 Posts

Posted - 2013-05-01 : 18:05:23
uhjj

bitsmed
Aged Yak Warrior

545 Posts

Posted - 2013-05-01 : 18:45:20
[code]
select rental.compname
,rental.aptnum
,customer.custlname
,customer.custfname
from apartment
left outer join rental
on rental.compname=apartment.compname
and rental.aptnum=apartment.aptnum
left outer join customer
on customer.custid=rental.custid
order by customer.custlname
,customer.custfname
rental.compname
,rental.aptnum
;
[/code]
Go to Top of Page
   

- Advertisement -