Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do this?
Message
De
08/03/2004 09:33:58
 
 
À
08/03/2004 09:17:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00884038
Message ID:
00884049
Vues:
12
CREATE CURSOR CursorA (cCode C(4),cName C(20), nRate C(10))
INSERT INTO CursorA VALUES ('0001','John','10/90')
INSERT INTO CursorA VALUES ('0002','Mike','20/80')
INSERT INTO CursorA VALUES ('0003','Calvin','20/80')

CREATE CURSOR CursorB (cCode C(4),cName C(20), yCharges Y)

INSERT INTO CursorB VALUES ('0001','John', 150.00)
INSERT INTO CursorB VALUES ('0002','Mike',  80.00)
INSERT INTO CursorB VALUES ('0004','Jeff', 120.00)

SELECT	NVL(A.cCode ,B.cCode)	cCode;
,	NVL(A.cName ,B.cName )	cName ;
,	NVL(A.nRate,SPACE(10))	nRate	;
,	NVL(B.yCharges,$0)	yCharges ;
FROM CursorA A FULL JOIN CursorB B ON A.cCode  =B.cCode  
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform