Eurico,
Create Cursor sTMP (rec I, Client C(20), SldVal N(9,2))
INSERT INTO sTmp(rec, Client, SldVal) values (1, "Client01", 100.00)
INSERT INTO sTmp(rec, Client, SldVal) values (2, "Client02", -200.00)
INSERT INTO sTmp(rec, Client, SldVal) values (3, "Client03", 100.00)
INSERT INTO sTmp(rec, Client, SldVal) values (4, "Client04", -100.00)
INSERT INTO sTmp(rec, Client, SldVal) values (5, "Client05", 230.00)
Select all ;
sTMP_1.Client as Client_L, ;
sTMP_1.SldVal as SldVal_L, ;
sTMP_2.Client as Client_R, ;
sTMP_2.SldVal as SldVal_R ;
from sTMP sTMP_1 ;
left join sTMP sTMP_2 on sTMP_2.Rec=sTMP_1.Rec+1 ;
where Mod(sTMP_1.Rec,2)<>0 ;
into cursor curTemp
*
Browse
Dave Crozier
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Eurico Chagas Filho
Sent: 18 February 2008 14:47
To: 'ProFox Email List'
Subject: Select statement
Hi
I have this;
INSERT INTO sTmp(Client, SldVal) values([Client01, 100.00)
INSERT INTO sTmp(Client, SldVal) values([Client02, -200.00)
INSERT INTO sTmp(Client, SldVal) values([Client03, 100.00)
INSERT INTO sTmp(Client, SldVal) values([Client04, -100.00)
INSERT INTO sTmp(Client, SldVal) values([Client05, 230.00)
and i want to show this;
Client01 100.00 Client02 -200.00
Client03 100.00 Client04 -200.00
Client05 230.00
a client can appear on both columns and I could have only
positives or negatives values.
TIA, E.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18-Feb-08
05:50
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.