Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command contains unrecognized phrase/keyword
Message
De
24/12/2006 09:54:30
 
 
À
24/12/2006 09:50:23
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01180003
Message ID:
01180036
Vues:
17
hi,
thank you,
also does TRN_QNTY have null values ? 2 records
>>
>>CLOSE ALL
>>USE test
>>brow&&i can see my data(found)
>>ldStart =ctod("01/01/2006")
>>ldEnd = ctod("31/12/2006")
>>
>>SELECT stk_code,trn_type,trn_date,cst_prce,str_nmbr, ;
>>	SUM(IIF(MONTH(trn_date)=1 AND trn_type=1,trn_qnty, 000000)) AS m1_t ;
>>	FROM test ;
>>WHERE between(trn_date,ldStart,ldEnd)&&no result
>>WHERE between(trn_date,date(2006, 12, 31))  ;error
>>GROUP BY stk_code,trn_type,trn_date,cst_prce,str_nmbr
>>
>
>trn_date = ??? is it defined ?
>
>try shifting the iif outside the sum like
>
>SELECT stk_code,trn_type,trn_date,cst_prce,str_nmbr, ;
> SUM(trn_qnty) AS m1_t ;
> FROM test ;
>WHERE MONTH(trn_date)=1 AND trn_type=1 and between(trn_date,ldStart,ldEnd) ;
>GROUP BY stk_code,trn_type,trn_date,cst_prce,str_nmbr
>
>also does TRN_QNTY have null values ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform