Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help about Where Clause
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Help about Where Clause
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01012198
Message ID:
01012198
Views:
62
Hi to all,

I need a little help about a "where clause".
In a form I use only one SQL table, i.e named cTable.

I have created two CA,i.e named caTable1 and caTable2, with the same Select like this:
Select cTable.code, cTable.descr, cTable.perc1, cTable.perc2, cTable.appcode from cTable

The cursor caTable2 is used in the form in order to create a PickList for Field appcode in cTable.

I need to create in the caTable2 a "where" clause that satisfy these rules when appcode in the Form is not null:
1) The perc1 in the caTable2 must be equal to perc1 in caTable1
2) the perc2 in the catable1 must be equal to ZERO.

I am a neophite in VFP with SQL, and I hope in your help in order to resolve this question.

Thank you and Best Regards.
Nino
Next
Reply
Map
View

Click here to load this message in the networking platform