Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some Help with Select statement
Message
De
19/09/2003 05:28:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00830332
Message ID:
00830583
Vues:
22
Hi Caroline,

Simple:
if this rules are true:
- BETWEEN(itemId,0,31) is true
- CustID,itemId is unique

this:
Select CustID from Subs ;
where itemId=1;   
and CustId in (select CustId from Subs where itemId=2) ;
and CustID Not IN (select distinct CustId from Subs where itemid NOT IN (1,2))
and
Select CustID from Subs GROUP BY CustID HAVING SUM(BITSET(0,itemId))=6
are equal.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform