Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Param views not updating properly in 2 separate exes
Message
From
23/07/1999 14:53:44
 
 
To
23/07/1999 14:45:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00244820
Message ID:
00245488
Views:
13
>>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 
		
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform