Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Balance amt using SQL from Parent-Child and GrandMaster
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00966900
Message ID:
00967163
Vues:
13
Hi Sergey

>I think you'e missing my point. I looked at your CASE expression and don't understand why it has to be so complicated.

It got complicated because 100-60 has to be done only on the Dr side in one record and on the second record 60-60 has to be performed on the Cr side, the other side Cr and Dr resp. need not be calculated as it does not have a value. Furthermore, an entry that does not have an adjustment created till date will have 0 for both Dr. and Cr (will be null as it does not have an Adjustment table entry) but actually I would want to see the original amount in either Dr or Cr column as the value is still unadjusted.

Further Dorin has simplified the SELECT statement to make the CASE bearable <g>. I still ahve less experience with SQL's

>Thank you.

Welcome and one of the vote is mine <g>.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform