General information
Category:
Coding, syntax & commands
try,
SELECT stk_code,trn_type,trn_date,cst_prce,str_nmbr, ;
SUM(trn_qnty) AS m1_t ;
FROM test ;
WHERE !isnull(trn_qnty) and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only