DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Database Design (http://www.daniweb.com/forums/forum142.html)
-   -   "Not" operator not functioning in t-sql (http://www.daniweb.com/forums/thread10528.html)

Slade Sep 8th, 2004 8:26 pm
"Not" operator NOT functioning in t-sql
 
Ok guys, check this out
select app_given, app_surname, contract.contractID
from contract, progression
where pay_nop like 'PAY'
and
contract.status like 'Active'
and
app_type like 'Apprenticeship'
and
Contract.ContractID = progression.contractid
group by contract.contractid, app_given, app_surname
Ok, this works FINE. But, when I try to add Not..:
Not Contract.ContractID = progression.contractid
It just brings up all of the contract ID's, including the one's in the progression table. What I want it to do is bring up the contract Ids that ARENT in the progression table.

Thanks in advance for your help,

Slade


All times are GMT -4. The time now is 7:33 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC