Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
10/02/2007 22:07:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
SQL Statement
Divers
Thread ID:
01194505
Message ID:
01194505
Vues:
58
Hi all,

I have a table with stock movements with all IN entries and OUT entries from several years, my back end is sql server, now i need to create a select statement that i can have this layout,
   Date     Description         Out     In   Stock
            Total Later Years  1000   1500     500
01.01.2006    IN                       500    1000
07.01.2006    OUT               100            900 
12.03.2006    IN                        50     950
...
...
But in the first line i need to count all the movements from the last years. Any chance to acomplish this with only one SELECT.

Thank's

João Batista
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform