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
 query help....

Author  Topic 

wormz666
Posting Yak Master

110 Posts

Posted - 2008-10-13 : 04:55:48
Select t.info_id,r.lastname,r.firstname,r.middlename
from tbl_birth t inner join(tbl_information r full outer join
tbl_death s on r.info_id=s.info_id)
on r.info_id=t.info_id where s.info not in r.info_id

i need a list of people hu doesnt belong to the tbl_death
plz...help..thank you in advance...

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-13 : 04:58:42
[code]Select t.info_id,r.lastname,r.firstname,r.middlename
from tbl_birth t
inner join tbl_information r
on r.info_id=t.info_id
left join tbl_death s
on r.info_id=s.info_id
where s.info is null[/code]
Go to Top of Page
   

- Advertisement -