Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Sql - One Record , two records
Message
De
05/05/2003 11:50:41
 
 
À
05/05/2003 11:38:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00784975
Message ID:
00784984
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
Hi Pedro

I dont know if this is a perfect solution but try it
CREATE CURSOR test;
(code c(4),db n(10,2),cr n(10,2))
INSERT INTO test VALUES ('c1',500,0)
iNSERT INTO test VALUES ('c1',0,25)
iNSERT INTO test VALUES ('c2',250,0)
SELECT code,db,cr FROM test WHERE db>0 UNION select code,db,cr FROM test WHERE cr>0
hth


>Hi
>
>In one Table i have code , ValDeb N(10,2) , ValCre N(10,2)
>
>One record can have this
>
>Code1 , 50.00 , 20.00
>
>another example
>
>Code2 , 25.00 , 0.00
>
>I want make one select , where result is :
>
>Code1 , 50.00 , 0.00
>Code1 , 0 , 20.00
>Code2 , 25.00 , 0.00
>
>Do you understand ?
>
>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform