Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select-SQL problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00750884
Message ID:
00750911
Views:
20
So you want only records with MyParent.the_seq = 1 and MyParent.excludeit=.T.?
SELECT *;
 FROM  appdata!MyParent ;
  INNER JOIN appdata!MyChild ;
   ON  MyParent.idnumber = MyChild.idnumber;
 WHERE MyParent.the_seq = 1 ;
   AND MyParent.excludeit 
>Perhaps someone can help me with this Select SQL statement.
>
>What I am after is this: if MyParent.the_seq = 1, then I want it included in the cursor. However, if MyParent.excludeit = .f. then I do not want it included in the cursor.
>
>The following doesn't give the correct results
>
>
>SELECT *;
> FROM  appdata!MyParent ;
>  INNER JOIN appdata!MyChild ;
>   ON  MyParent.idnumber = MyChild.idnumber;
> WHERE MyParent.the_seq = 1 ;
>   AND MyParent.excludeit = .f.
>
>Any help is appreciated.
>
>Mel Cummings
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform