Click here to Skip to main content
15,922,325 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have done the following query

SQL
SELECT SPOCode, SPONo  FROM tblPurchaseOrder WHERE SupplierCode='SUP-055' AND StateStatus='Entered' AND PICode=NULL


Here All condition match with database but it does not bring any row.
if I donprovide PICode=NULL then the query execute and gives result. the results are :

SPOCode	        SPONo
SPOA-000010	I-201402010
SPOA-000011	201402005

Please help me.
Posted
Updated 15-Feb-14 5:01am
v2

1 solution

Try:
SQL
SELECT SPOCode, SPONo FROM tblPurchaseOrder WHERE SupplierCode='SUP-055' AND StateStatus='Entered' AND PICode IS NULL
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900