if I want to know the sold items during a work period… could this be the correct SQL?
SELECT [MenuItemName],CONVERT(INT,SUM([Quantity])) as Cantidad
FROM [Orders]
WHERE [CreatedDateTime] > '{Start}' AND [CreatedDateTime] < '{End}'
GROUP BY [MenuItemName]
ORDER BY Cantidad DESC
The SQL fotr sure is good, I have tested it with SQL STUDIO… I am sorry I was not clear enough, I ment if the table where I am extracting the data is ok…
I am asking this because in the SQL studio I get all the sold items, but in SAMBA with the very same SQL script the report is empty… and I have sold 2 items by now…