MySQL Forums
Forum List  »  Spanish

ayuda mysql
Posted by: Garabet Meguerdechan
Date: June 07, 2016 03:32PM

Hola quiero ver como puedo hacer un comparativo de fechas pero con una condicion, ejemplo quiero sacar las ventas de un periodo y comprarlo con otro anexo ejemplo:

if(((dfecha>'2016-05-01') and (dfecha<='2016-05-31')),sum(aicantf),0)

como resultado me trae toda la informacion como puedo corregirlo de antamno gracias

Options: ReplyQuote


Subject
Views
Written By
Posted
ayuda mysql
1055
June 07, 2016 03:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.