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 2008 Forums
 Transact-SQL (2008)
 Self Join Problem

Author  Topic 

abdul.wahab
Starting Member

1 Post

Posted - 2012-02-29 : 10:28:33
I have a table in access with self join
let say person knows a person

but for the starters/root some persons are left empty

now I want to get those persons where there knowsperson (Number type) is nothing ?

I guess I have made my point clear

waiting for the reply


wanted

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-02-29 : 10:32:29
select ... from ... where KnowsPerson IS NULL


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2012-02-29 : 11:31:45
To be very clear, post the DDL of the Table, sample Data in DML form, and what the expected results are suppose to be



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -