TSQL Sum by group for monthly reports
I'm in the process of trying to produce a report (monthly, year to date, etc) on a group of shipping entries in our database to show correct sums as well as group them by shipping company. How can I accomplish taking all this information and produce proper reports? One thing to note is that all of the entries in this table are nvarchar(max) due to text importing with odd characters from various sources. The master database list looks something like this: table - shipping_info shipping_company | ship_date | shipping_category | shipping_cost UPS | 20130301 | CD'S | 3.50 UPS | 20130310 | Records