Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT SQL with OUTER JOIN question
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SELECT SQL with OUTER JOIN question
Miscellaneous
Thread ID:
00268640
Message ID:
00268640
Views:
38
Hey,

I have the following sql statement to create a view:

CREATE SQL VIEW "vreGlGen" ;
AS SELECT glaccnt.accnt_no, glaccnt.accnt_type,;
gltrans.ident, ;
gltrans.acc_per, gltrans.acc_year,;
gltrans.descr AS trn_desc,;
gltransd.gltrans_id, gltransd.glaccnt_id,;
gltransd.mnt_db, gltransd.mnt_cr ;
FROM glaccnt;
LEFT OUTER JOIN gltransd ;
ON gltransd.glaccnt_id = glaccnt.ident;
LEFT OUTER JOIN gltrans ;
ON gltrans.ident = gltransd.gltrans_id AND;
gltrans.acc_year = INT(?p_year);
ORDER BY glaccnt.accnt_no, ;
gltrans.acc_per, gltransd.gltrans_id

Pretty strange: when I run this, it asks me immediately for the p_year variable, not only when I want to open the view!??

Any ideas?

Thanks
Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform