[英]How to get data from Stored Procedure in form of two tables?
I have two tables 1. Staff 2. Clients Each Staff has some Clients. 我有两个表1.员工2.客户每个员工都有一些客户。 I want to write an Stored Procedure that returns me staff name and it's clients name and Clients address.
我想编写一个存储过程,该存储过程返回我的员工姓名,客户名称和客户地址。 How can I achieve this?
我该如何实现? I want to make a report from the returned result which will be like this:
我想根据返回的结果进行报告,如下所示:
This staff has three clients and their addresses are being shown respectively. 该工作人员有三个客户,并且分别显示了他们的地址。 This is just an example.
这只是一个例子。 I can have more than one staff.
我可以有多个员工。 This report is in simple HTML, I have to make it in SQL Server Reporting Services.
该报告使用简单的HTML,我必须在SQL Server Reporting Services中进行报告。 Any help would be appreciated.
任何帮助,将不胜感激。
Create a query that joins the Staff and Client tables together, and in SSRS, group by the staff name. 创建一个将Staff和Client表连接在一起的查询,并在SSRS中按人员名称分组。 It's pretty simple to do.
这很简单。
HTH. HTH。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.