Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized View
Message
De
08/11/1997 09:55:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
06/11/1997 16:22:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00058732
Message ID:
00059075
Vues:
30
>shouldn't the following view definition return only records that have >lastname beginning with 'A' and empty(disdate)? It doesn't - it returns >records that have lastname beginning with 'A' regardless of disdate. >Am I missing something simple? > >SELECT Clients.cidnum, Clients.clastname, Clients.cfirstname,; >Clients.cmiddlename, Clients.cadmdate, Clients.disdate; >FROM cms!clients; >WHERE Clients.cidnum LIKE ?vp_idnum; >OR (UPPER(Clients.clastname) LIKE UPPER(?vp_last)); >OR (UPPER(Clients.cfirstname) LIKE UPPER(?vp_first)); >OR (UPPER(Clients.cmiddlename) LIKE UPPER(?vp_middle); >AND EMPTY(Clients.disdate) = ?vp_active) I guess you should put all the ...Like ... OR ... Like into parentheses. Since AND has higher syntactical priority, you're actually getting Like1 or like2 or like3 or (like4 and empty()) You probably wanted something like (Like1 or like2 or like3 or like4) and empty()

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform