How to show asp.net chart grouped by 2 parameters
问题 I want to present some condensed data to the user using the Chart component. SQL (C# / Oracle): SELECT c.date, c.approved, count(distinct c.f1) amt_c, count(b.f1) amt_b, sum(b.value) sum_values FROM contracts c JOIN bens b ON c.ben_id = b.id WHERE :YearMonth = to_char(c.date,'YYYYMM') AND NOT c.approved = 'REJECTED' GROUP BY c.date, c.approved ORDER BY c.date I have this SQL in a method that passes a DataSet to the ObjectDataSource in the .aspx page (The approved field can have 3 values: