Hi There,
I am working with an application. I have more columns in a table say Customer, Sales, Branch location, Ship location, cost, month etc nearly 25 columns. I have to write a query in such away that, if I select TOP 10 customer sales, I need to get those top 10 customers from the table, I used Select Top 10 customers, Sum(Sales) from table....bla bla bla. And it is working fine.
After displaying this report with Customers and Total Sales columns, in addition to that if an user wants to see the comparison with some more columns say month, ship location, branch location,cost etc, How to do that and what query is involved at the back end to do so. Btw, in that application, there are column names with Check boxes for each column individually. Whenever the user Checks the columns, the report should be displayed with Customers and Total sales along with the selected Check box columns. For that what is your approach?
Please help me.
Thanks.