Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL-Select command question
Message
De
11/05/2000 16:10:40
 
 
À
11/05/2000 13:23:13
Randy Bowman
Al. Dept of Postsecondary Ed
Montgomery, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00368665
Message ID:
00368779
Vues:
12
>This is probably a pretty simple question, but I can't figure out a way to do this with one select statement. I want to query a table that contains information on 32 companies. I need to query infomation on 30 of those companies. I've tried all of the commands below with no avail.
>
>Select from where field1 <> 'A' or field1 <> 'B'
>
>Select from where field1 <> 'A' and field1 <> 'B'
>
>Select from where (field1 <> 'A' or field1 <> 'B')
>
>Select from where (field1 <> 'A' and field1 <> 'B')
>
>All of these picked up the info on all of the companies. I've run into this problem before and have just done the following (which I can do again).
>
>Select from
>delete all for field1 = 'A' or field1 = 'B'
>
>I was just wondering if there was a way to get the results I want without doing the delete command.
>

Select from where ! field1 IN ('A','B')


>Thanks.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform