Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prize Bond
Message
De
19/02/2011 08:03:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/02/2011 20:37:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01500803
Message ID:
01500833
Vues:
37
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform