Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table join puzzle
Message
 
 
To
29/07/2004 15:57:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00929042
Message ID:
00929328
Views:
9
Steve,

You can change the second select to eliminate 1's w/o 3's
SELECT *, 000000000 AS rn ;
	FROM test ;
	WHERE Status = "1" ;
          AND ItemNum IN ( ;
             SELECT DIST ItemNum FROM s3) ;
	ORDER BY ItemNum, Cust, Sku ;
	INTO CURSOR s1 READWRITE
>
>Thank you for doing that. Haven't had a chance to really look at your code yet. But following that with:
>
>
>select * from crsResult order by itemNum
>
>
>Almost gets the exact result I need...I just need to lose the case where there is status code of 1 and no 3's to go with it.
>
>I must work with it more to guarantee that the above SELECT will always return them in the right order (NULLs for each column at the bottom of the group).
>
>Thanks! :)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform