Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where clause
Message
De
13/11/2002 13:05:49
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Where clause
Divers
Thread ID:
00722242
Message ID:
00722242
Vues:
43
Hi All

I cannot explain my self-regarding the following query.

I have 3 tables and table c has one column FieldStatus and its value = 100.

But in where clause of the query I put FieldStatus = 0 even then it is showing in the result.

values in table tbl_FieldReviewStatus c

originid appid fieldstatus
-------- ----------- -----------
01 100008 100

select c.originid,c.appid,a.originid,a.appid, c.FieldStatus from tbl_application a, tbl_yellowsheet b,tbl_FieldReviewStatus c
where a.originid=b.originid and a.appid=b.appid and a.originid*=c.originid and a.appid*=c.appid and b.SSStampedDate is not null
and a.requiredfr=1 and a.ProjectCanceled is null and c.FieldStatus=0
order by a.originid ,a.appid

result I got from above query is

originid appid originid appid FieldStatus
-------- ----------- -------- ----------- -----------
NULL NULL 01 100008 NULL


how come this record is showing in this query.

thanks
...ashish
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform