Hi Team,
I am trying to create my first report here. My report will show the employee name with corresponding order assigned to them. I already created one datasets which returned the employee name, then I created another one which take the employee name and returned count of the order.
My questions is:
1) is that possible to passing the parameter from the first datasets which contain of customer name?
2) is there any better way of doing this (maybe using one datasets instead of two).
Any respond I will really appreciate.
Anyone please!|||Make one dataset with query like this:
select empName, count(orderID) as orderCount
from employees
inner join orders on employees.name = orders.employeeName
But better if you use employee ID rather than his name for joining tables.
|||Thank you.
No comments:
Post a Comment