You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select YEAR(ActiveFrom) as Year, MONTH(ActiveFrom) as Month, EntryID as 'Discount ID', [Discount Percentage], Count(*) as 'Granted times' from TIMED_DISCOUNTS_VIEW
where EntryID is not NULL
group by EntryID, YEAR(ActiveFrom), MONTH(ActiveFrom), [Discount Percentage]