Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Param views not updating properly in 2 separate exes
Message
De
23/07/1999 14:53:44
 
 
À
23/07/1999 14:45:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00244820
Message ID:
00245488
Vues:
18
>>I fixed the problem by moving the LEFT OUTER JOIN logic to the WHERE clause, obviously making it an INNER JOIN.
>>
>>Two problems with this approach. 1st, I'm not 100% sure that I don't need the outer join. 2nd, the WHERE clause approach is much slower.
>>
>>Dan
>
>Howsabout posting the posting the SQL? Maybe someone here can help you optimize it.

Ok. Here it is.
CREATE SQL VIEW "VWORKORDHDR_PDATERANGE" ; 
	AS ;
	SELECT Workordhdr.*, ;
		Companymstr.ccompanycode, ;
		Companymstr.ccompany,  ;
		Companymstr.ccompdiv  ;
	FROM  ;
		wc!WorkOrdhdr, ;
		wc!CompanyMstr ;
	WHERE ;
		Workordhdr.drecdat >= ?pdFrom AND ;
                Workordhdr.drecdat <= ?pdTo AND ;
		Companymstr.icompanyid = Workordhdr.icompanyid 
		
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform