I am working .Net program.
Is it possible to create a dataset based on the result of another dataset?
For example,
Dataset_A= "select OrderBy, OrderDate, Sum(OrderAmount) as Amount from TableOrder group by OrderBy, OrderDate"
Dataset_B ="select OrderBy, Sum(Amount) from Dataset_A group by OrderBy"
User's selections from app will create Dataset_A but final report will based on Dataset_B (without OrderDate)