Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized view for no parameter?
Message
 
 
To
17/02/2004 10:10:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00877929
Message ID:
00878098
Views:
21
>I've got a couple parameterized views that could be reused without the parameter (for reporting purposes). Is it better to create a separate view without the parameter, or is it possible to massage the parameter somehow?
>
>Select * from customer where custid = ?vp_custid
>
>There's another view where the parameter is from a second table, how would I do that?
>
>Select * from customer inner join address on customer.addressid = address.addressid where address.country = ?vp_country
* Set m.vp_custid = "" to select all rows: 
SELECT * ;
  from customer ;
  where ?vp_custid IN ( custid, "" )
* To 
- Andy Rice
San Diego, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform