Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compute Balance In Query
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01379592
Message ID:
01379648
Vues:
19
>I'm not sure if I'm explaing what I want. This query does not return the results I want:
>
>
>Payment               Deposit               Reconciled Balance
>--------------------- --------------------- ---------- ------------
>NULL                  750.00              NULL       750.00
>18.52                 NULL                  NULL       18.52
>74.28                 NULL                  NULL       74.28
>42.16                 NULL                  NULL       42.16
>100.00                NULL                  NULL       100.00
>NULL                  150.00               NULL       150.00
>112.25                NULL                  NULL       112.25
>
>
>The last column should be have the balance, not the value of the despoit or payment column.

How the balance should be calculated?

Can you post some sample data and what exactly do you want to get?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform