Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL suggestions needed
Message
De
15/02/2000 14:26:32
Oleg Khvalin
The Sutherland Group Ltd
Rochester, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00331812
Message ID:
00332390
Vues:
19
>Oleg,
>
> Yes, this SQL works and gives me desired result! The problem now is that my application returns the whole where expression. As I understand, I need to devide it this way...
>
>
>
>>Nadya, how about this:
>>SELECT * FROM tranmstr ;
>>left JOIN misclndr on tranmstr.tranid = misclndr.tranid ;
>> and between(tranmstr.extrYear+tranmstr.extrWeek ,oJC.LowWeek,oJC.HighWeek) ;
>> and and SOURCE="S" ;
>>inner JOIN propmstr on tranmstr.propid = propmstr.propid ;
>>inner JOIN sitemstr on tranmstr.propid = sitemstr.propid ;
>> and sitemstr.town="GOSN" and sitemstr.prefcode = "P" ;
>>left JOIN bldgmstr on tranmstr.propid = bldgmstr.propid ;
>>right join Towns on SiteMstr.Town=Towns.Town ;
>>where Towns.town="GOSN" ;
>>INTO TABLE &qry_arg3
>>
>>Oleg
Nadya,
just remember that with ANSI-style joins WHERE restrictions apply AFTER join has been performed.
Ни пуха!
Oleg
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform