Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL-Select command question
Message
De
11/05/2000 13:23:13
Randy Bowman
Al. Dept of Postsecondary Ed
Montgomery, Alabama, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL-Select command question
Divers
Thread ID:
00368665
Message ID:
00368665
Vues:
48
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.

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform