Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Returning Less Than Desired
Message
From
19/07/2001 16:15:06
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Returning Less Than Desired
Miscellaneous
Thread ID:
00532833
Message ID:
00532833
Views:
37
The SQL statement below only returns records which have a value of 1 in the subsystem field. Since the value of cSubSystem is ",1,2,3,4,5,6,7,8,9,10," I expected more. There are records which match the criteria in the table and I have verified the value of cSubSystem. I have tried evaluating the variable in the statement, but that does no good or causes syntax errors. Any ideas? Thanks!

Regards, Renoir
SELECT DISTINCT ;
	Codes.type, Codes.code, Codes.subsystem ;
	FROM codes ;
	WHERE ","+ALLTRIM(STR(Codes.subsystem))+"," IN (?csubsystem)
Next
Reply
Map
View

Click here to load this message in the networking platform