Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select records if field in 2nd table is in a list of val
Message
 
 
À
23/07/2007 21:37:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01242994
Message ID:
01243228
Vues:
29
>Hey, thanks for looking at it. I'm sure those are exactly spot on. However, what I cannot figure out is why the very end of the statement is throwing the error where the ON portion is. Both tables have that field and the field is identical. When I miss something, it is usually something very obvious, so I thought if I posted it, I may actually see it. However, not tonight obviously!
>
>
>
Hi Tracy,

I guess you worked too hard yesterday.

Basically, here is how your select should look like:
select * from tbl1 tb1 inner join (select ... from tbl2 where) TB2 on ;
tb1.ID = tb2.ID
And if you compare it with what you currently have you'll see the problem right away.

Perhaps there are other problems there as well, but this was something I noticed from the quick glance.

You can use from tbl1 as tb1 or you can omit AS. In VFP 'AS' is not required.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform