Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why the results are different?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Why the results are different?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01353035
Message ID:
01353035
Vues:
55
Hi,

I have these queries:
SELECT * FROM stage_trans ;
WHERE tDate_Received between DTOT(DATE(2008,9,29)) AND ;
DTOT(DATE(2008,9,30))-1 AND cClient_Code = '1301' ;
AND cProduct_Line_Code ='201' INTO CURSOR curLoaded readwrite
INDEX on cClient_Account_Number TAG cAccount

* Returns 8973 records

SELECT * FROM trans ;
WHERE tDate_Received > DTOT(DATE(2008,9,29)) ;
AND cProduct_Line_Code ='201' AND cClient_Code = '1301' INTO CURSOR curImported readwrite
INDEX on cClient_Account_Number TAG cAccount

* Returns 3248 records

SELECT cL.* FROM curLoaded cL LEFT JOIN curImported cI ;
ON cL.cClient_Account_Number = cI.cClient_Account_Number ;
WHERE cI.cTrans_pk IS NULL INTO CURSOR curDifference
* Returns 2477 records

1. Why I didn't get all the difference?

2. Is there a way to get all accounts that were not imported?

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform