Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complicated SQL
Message
De
21/08/1999 09:21:37
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Complicated SQL
Divers
Thread ID:
00256239
Message ID:
00256239
Vues:
53
I've 3 tables :-

ACGLMST -> General Ledger codes,
Fields AcCode, Description, OpnBal

ACTRANS -> Transaction file, Parent of Actr2,
Fields AcCode, Date, Amt, DrOrCr

ACTR2 -> Child of Actrans, 1 to Many Relation,
Fields Actranscode, AcCode, Date, Amt, DrOrCr

I need report in following format
Ledger Code 1     "Scb Bank A/c"        Opening Balance 145,000.00
==================================================================

AcCode   Description    Date        DrAmt       CrAmt

12       Xyz Customer   01/01/99    50,000.00    -
13       Claims         15/02/99     -          1560.00

Ledger Code 2 etc. etc.
By writing a procedure, i can create a cursor, but is there any way to retrieve this info with 1 sql command only.. (which I can use in report)...

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform