Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select problem
Message
 
 
À
17/05/2007 12:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01226415
Message ID:
01226420
Vues:
19
>i have a table named tb_account. inside this table i have all information about the account. i have four type of account. it cant be client,broker,carrier and propest. (its 4 different field). so an account can be one of them , or two of them etc... so if i want a select to retrieve all the client, broker account ??? how can i do that ?

What type are these fields? Logical?

If yes, then

select * from Tb_Account where Client = MyClient_Code and Broker = .T.

Or you want only accounts which are broker and no other types? If yes, then logical AND needs to be applied.

With integer fields 1/0 you would be able to use BITAND function.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform