Hi, I've been trying to make this work for most of the day now and I'm not getting very far....
I have 2 tables
User
intUserID
strFirstName
strLastName
Extension
intExtID
intExtNum
intUserID
I am trying to extract a list of users which don't have an Extension assigned to them. So....what I am trying to do is this...
Select All Users Which don't have an extry in the Extension Table.
I have been trying to do this using queries very similar to this.....
but I'm getting no success....
Could someone advise me on this please or recommend somewhere I might find a tutorial on this....
Thanks.
I have 2 tables
User
intUserID
strFirstName
strLastName
Extension
intExtID
intExtNum
intUserID
I am trying to extract a list of users which don't have an Extension assigned to them. So....what I am trying to do is this...
Select All Users Which don't have an extry in the Extension Table.
I have been trying to do this using queries very similar to this.....
Code:
$userquery="SELECT strFirstName, strLastName FROM User WHERE intUserID NOT IN(SELECT * FROM Extension)";
but I'm getting no success....
Could someone advise me on this please or recommend somewhere I might find a tutorial on this....
Thanks.