Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL FROM SQL
Message
 
 
À
21/01/2009 08:08:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01375790
Message ID:
01375869
Vues:
18
>>Something like this?
>>
>>
>>SELECT InsCarr.CarName, Seq, Rec FROM InsCarr JOIN (SELECT PADL( Seq_Num, 4, '0' ) AS Seq, RECNO() AS Rec, cvCarr FROM covr WITH (BUFFERING=.T.) ;
>>WHERE Pat_No=Patient.PtPn AND CvPS=InsuranceLevel AND ! DELETED() ) ;
>>Covr ON InsCarr.InsCarr=Covr.cvCarr ;
>>ORDER BY 1 INTO CURSOR CarrierList
>
>It gives an error that "SQL column cvCarr is not found." but I know that Covr.cvCarr exists in that table. My first SQL works fine with that column.

You need to include this field in the inner select (derived table), so it would be visible outside.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform