Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create outer join for remote view created on vfp
Message
From
24/10/2000 12:36:19
 
 
To
24/10/2000 12:22:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00433613
Message ID:
00433626
Views:
20
>how to create outer join for remote view created on 2nd vfp Database.
>Rajesh

If you mean create a view in Database1 built on a remote view in (e.g.) Database2, the following should work...

to create it
OPEN DATA database2
OPEN DATA database1

** create remote view parameters, if any
vpRemoteParam = "SomeValue"

CREATE SQL VIEW lvMyView AS ;
  SELECT rvView1.field1, mytable.field2 ;
  FROM database1!mytable ;
  LEFT JOIN database2!rvView1 ;
  ON mytable.joinfield = rvView1.joinfield
to use it later..
OPEN DATABASE database2
OPEN DATABASE database1
vpRemoteParam = "SomeValue" && if needed
USE lvMyView
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform