Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding a parameter in a Parameterized View?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00186376
Message ID:
00186565
Views:
13
>My solution has been to define my view with a macro substitution in it, which looks like this:
>
CREATE SQL VIEW MyView ;
>	AS SELECT a.Field1, b.Field2 ;
>	FROM Table1 a, Table2 b ;
>	WHERE b.PriKey = a.PriKey AND &Condition
Oops, that should have read b.PriKey = a.ForKey.

By the way, in some actual implementations I used a LEFT JOIN, not the old-fashioned join condition in the WHERE clause.

Cheers,
Rich
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Reply
Map
View

Click here to load this message in the networking platform