Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prize Bond
Message
From
19/02/2011 08:03:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/02/2011 20:37:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Miscellaneous
Thread ID:
01500803
Message ID:
01500833
Views:
38
>Dear Programers
>
>Table1 has following column
>
>bonds c(6)
>and data in this column is as under
>
>002348
>125740
>167211
>289262
>874526
>
>now there is PDF file (Prize Bond Draw List) on this location
>
>d:\15-02-2011,%20Rs.1500.pdf
>
>I want to search table1 data from this pdf file.
>
>At last, all matching numbers to a new cursor.
>
>Thanks

To match records between two tables, you can use a JOIN clause with the SQL SELECT command (see help under SELECT - SQL). Example:
select Pdf.*;
  from Pdf join Table1 on Pdf.CommonField = Table1.CommonField;
  into cursor Temp
An alternative is using a subquery:
select * from Pdf;
  where CommonField in (select CommonField from Table1);
  into cursor Temp
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform