Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need SQL to find LATEST child record
Message
 
À
15/04/2003 16:07:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00777700
Message ID:
00778029
Vues:
22
>Cetin and Chad,
>I get the error:
>cStatus is not unique and must be qualified in both of your solutions.
>
>Perhaps this is because I am using VFP7.0. I am NOT using SQL server. Would that make a difference?
>Thanks,
>John

John,

cStatus apparently exists in both tables, right? You have to qualify it with a table alias. You can use short aliases for the tables as I did in my code to you. In my code, I used im to refer to INMATES and ae to refer to ACCT_EVENTS. So, assuming you want the cStatus field from the INMATES table, you would reference it in the field list as im.cStatus.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform