S
|
stiven 4/6/2012 |
Hello, I need a way to be able to select the month in the following SQL query. SELECT MONTHNAME (SaleDate) AS Month, COUNT (*) AS sales, Employee, SaleDate, sales AS sales1 FROM sales GROUP BY Employee ORDER BY level DESC if I add the line "WHERE (month (SaleDate) = month (now ()))" I can see the sale of the current month and for example I add the line "WHERE (MONTH (SaleDate) = 12)" I can see sales for the month of December. What I need is a way for the user to select the year and month of sales.
|
J
|
joiresende author 4/7/2012 |
Dear Stivens, sorry for my english, I reversed the question for a better understanding |
J
|
joiresende author 4/7/2012 |
It did not work |