Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overcoming a thorny interest calculation problem ..
Message
 
To
23/01/1999 07:58:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00178831
Message ID:
00179424
Views:
30
>>Hi Mike,
>>
>>Thank you for sharing all this with us.
>>
>>... but when I see an SQL like that I think that time has come to revert to more traditional procedural coding that at least allows proper documentation.
>>
>>Or is it just me?
>>
>>Marc
>>
> Undoubtedly, a great job was done, but generally I agree with you. In cases like this (and I've done lots of interest calculus, specially since inflation forced us to use conform rates instead of proportional), I'd rather see three or four subqueries creating cursors for themselves first, which can be properly documented and hopefully obvious, and then do a somewhat easier join.
>
>Interest data was never too easy. You always need something which is not an event (i.e. a document with a record in some table), but have to create a new record on the date distance between that and something else, which is hard to catch at times. Well, c'est la guerre :)

Comme vous dites mon ami, but it is not only that. Can you imagine having to change such a bitch? I can, because I did have such huge sql's. Never again. My rule is, if you cannot document it properly, it should not be there.

BTW, this _is_ one of the unbeatable features of the fox, that you have the alternative to break the sql in pieces no?

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform