Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select Conundrum
Message
From
27/07/2006 10:11:10
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01140649
Message ID:
01140676
Views:
16
Any idea why everything works fine until I add the WHERE clause?
lcfilter = 'ABC123'
SQLEXEC(lnConnhandle," select t22.field3, t23.field3, t1.field1, t1.field4 from table1 t1 ;
   JOIN table2 t22 ON t22.field1 = 'FKEY1' and t22.field2 = t1.field2 ;
   JOIN table2 t23 ON t23.field1 = 'FKEY2' and t23.field2 = t1.field3 ;
   ORDER BY 3, 4 ;
   WHERE t1.field1 = ?lcfilter",'sqlresults')
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform