Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need to put something - if it's there or not
Message
De
29/08/2006 06:31:27
 
 
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 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01147940
Message ID:
01149276
Vues:
8
Thanks Sergey.

No, that didn't work. I seem to have cracked it with:
...
  LEFT JOIN RF1 ;
    On	NET.Operator  == RF1.Operator ;
    and (    NET.Route == RF1.ERoute ;
      	 or EMPTY( RF1.ERoute) ) ;
...
>>Sorry Sergey, I don't understand. I'm not intending to do "strange experiments". Your reply is very vague. I told you originally had that clause in, and got wrong results, and this was before I was advised to LEFT JOIN.
>>
>>Is there a solution to this or is the whole thread too hard to understand?
>Try
>
>SELECT DISTINCT NET.Operator, NET.Route, NET.Start_Date, NET.End_Date, NET.RorF, NET.Passengers, ;
>	IIF( NET.Route == NET.Mcl_Rte, "    ", NET.Mcl_Rte) as ContrNum, NET.Family, ;
>	0000000 AS CurrPass, 0000000 AS PrevPass, op.Desc as OpDesc, ;
>	NVL(RF1.ServType, "?") as ServeType ;	
>  FROM NotETM NET ;
>    JOIN Operator op ;
>      On NET.Operator == op.Code ;
>    LEFT JOIN RF1 ;
>      On  NET.Operator == RF1.Operator ;
>      and NET.Route    == RF1.ERoute ;
>  WHERE (	 (	m.ldStartCurr BETWEEN NET.Start_date AND NET.End_date) ; ...
>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform