Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some Help with Select statement
Message
From
19/09/2003 05:28:58
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00830332
Message ID:
00830583
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform