No...
PUNTOS_RESTANTES is not a field in my DB, this is a field in the query...
"... SUM(FACTURACION.PUNTOS) - SUM(CANJE.TOTALPUNTOS) AS PUNTOS_RESTANTES, ..."
I had to put PUNTOS_RESTANTES in group by clause because i get error if i do not do so... :(
Note:
I also replaced...
GROUP BY 1,2 ?
I get syntax error...
Anyway, I'm getting same result if I change the order of "appearance" in the group by clause...
any ideas ? thanks a lot 4 helping..
the SQL engine I use is www.nexusdb.com and it is compatible with ISO SQL standards, etc.
Hi guys
1º lemme explain situation:
there're clients who buy at a shop. there're promotions in shop (can be normal or special). one promotion says: "for each u$s 100 you buy, you get 1 point". client can exchange points by gifts.
2º Take a look at this image...