Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correlated Subqueries not allowed in views?
Message
From
20/01/1999 11:10:40
 
 
To
19/01/1999 23:40:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00177885
Message ID:
00178030
Views:
31
>create sql view lv_intcalcsource as ;
>select InvHead.cinvoi_key, ;
> <snip>
> InvHead.cPenRevAcc ;
> from hea!InvHead inner join hea!Company ;
> on InvHead.cCompa_Key = Company.cCompa_Key ;
> where ;
> ( DaysToPaid() > IntCalc.ic_days .and. .not. lFullyPaid ) ;
> .or. ;
> ( lFullyPaid .and. ;
> ceiling( (DaysToPaid() - IntCalc.ic_days) / 30 ) + 1 > ;
>$ (select count(*) ;
>$ from InterestDetails ;
>$ where InvHead.cInvoi_Key = cDet_InvoiKey) ) ;
> order by Company.cCompanyName, InvHead.dCompletionDate

You could have subquery's in a view (even your "kind" :)) I think the problem might be VFP's View Designer (if you're trying to open it in View Designer). View Designer is horrible with complex views and will many times not able to open it, although everything is valid. For creating complex views, use code and edit views also in code.
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform