Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do this?
Message
From
08/03/2004 09:33:58
 
 
To
08/03/2004 09:17:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00884038
Message ID:
00884049
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform