Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL help
Message
 
 
À
01/05/2001 15:45:14
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, É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:
00502017
Message ID:
00502212
Vues:
17
>I'll give you a credit for it, even I had little hard time finding out why I kept getting errors, but it was the missing "ID" in the lnPersonID :)
>
>>>CASE m.pick='Name'
>>>*	=SEEK(ThisForm.List1.List(ThisForm.List1.ListIndex),"person","main")
>>       local lnPersonID
>>        lnPerson=int(val(ThisForm.List1.List(ThisForm.List1.ListIndex)))
>>        lnName=ThisForm.List1.List(ThisForm.List1.ListIndex,2)
>>>	SELECT lnName as PName, auth.organization, auth.authtype, auth.effective, auth.end ;
>>>		FROM auth ;
>>>		WHERE auth.id=lnPersonID ;
>>>		INTO CURSOR curTemp
>>>browse
>
>The question still remains how to do this SQL "straight forward" (instead of using the lnName). I did another SQL also with two tables and works. There may come a time where I may need data from three tables where the "lnName" may not be possible.
>
>Chuck

Chuck,

Each solution depends on situation :) Did you see Rich's answer? If you did seek first, you can use info from the record, e.g. Person.Name, Person.Age, etc., but don't include Person table in your SQL.
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