Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore optimization
Message
From
23/02/2005 17:00:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/02/2005 16:44:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00989848
Message ID:
00989865
Views:
18
This message has been marked as the solution to the initial question of the thread.
I don't have experience with a remote view yet; but I suppose you can do it similar to a local view: either with the view builder, or programmatically. I suppose that programmatically, you can provide the complete SQL string.

On the other hand, if you need the data for a report, i.e. read-only, perhaps a query would be more appropriate. I am not sure exactly how this is done with a remote server; perhaps with SQL pass-through?

>Hi Himlar
>
>Had just got to this one, but unfortunately it doesn't completely resolve my problem, which is that I want to do create a view to do this with dynamic user defined data (ie. the decide what is in the list.
>
>This would normally be fine using macro substitution but I need to do this with a remote view and this is not permitted.
>
>Any ideas how I can get around this?
>
>Regards
>Geoff
>
>>inlist() is quite a bit shorter, and should be optimizable:
>>
>>
>>... where inlist(Status, "A", "F", "T", "H", "E", "W")
>>
>>>Hi
>>>
>>>I have a large table with a status field and I want to select the records for a group os status's.
>>>the table is indexed on the status
>>>
>>>this can be done by
>>><pre>lcStatusList = 'AFTHEW'
>>>SELECT* ;
>>>FROM mytable ;
>>>WHERE mytable.status $ ?lcStatusList
>>>
>>>Unfortunately, this does not optimize.
>>>
>>>Is there any way to fully optimize this query without expanding the Select to something like
>>>
>>>
SELECT* ;
>>>FROM mytable ;
>>>WHERE mytable.status = 'A' OR ;
>>>	mytable.status = 'F' OR ;
>>>	mytable.status = 'T' OR ;
>>>	mytable.status = 'H' OR ;
>>>	mytable.status = 'E' OR ;
>>>	mytable.status = 'W'
>>>
>>>regards
>>>Geoff Scott
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform