Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select-SQL from 2 tables
Message
From
17/10/1997 09:54:35
 
 
To
17/10/1997 09:44:45
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055144
Message ID:
00055148
Views:
21
>I need to Select information from 2 tables and put the results into one cursor. I think I need to do some kind of subquery but I can't quite come up with the syntax to make it work. Here is what I need:
>
>I have one table which contains, agreeno(agreement number),dist(district number), begdate(beginning date) and enddate. I need the agreeno and dist where begdate<=date()<=enddate.
>SELECT DISTINCT agreeno,dist FROM agreemnt WHERE begdate<=date() AND enddate>=date()
>
>Then I need all fields from header.dbf for each dist selected above.
>
>Any suggestions?
>
>Shane

Suggestions? Just join header.dbf table to the same Select command (I guess you should have some fields linking two tables together).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform