您好我想执行这两个查询并在列表视图中同时显示结果。如何在一个选择命令中执行此查询:
我的 sql 查询:
Shareholder details:
Select inlt_parentcompanyid,inlt_effectinterest,inlt_sharetype,inlt_shares from InterestLogTable where inlt_childcompid=5
Subsidiary details:
select inlt_childcompid,inlt_effectinterest,inlt_sharetype,inlt_shares from InterestLogTable where inlt_parentcompanyid =5
我的 asp.net 列表视图:
Shareholder details:
<td><%#Eval("owner_parentCompanyId")%> </td>
<td><%#Eval("owner_sharetype")%> </td>
<td><%#Eval("owner_effectinterest")%> </td>
<td><%#Eval("owner_deemedinterest")%> </td>
<td><%#Eval("owner_shares")%> </td>
Sunsidiary details:
<td><%#Eval("owner_childCompanyId")%> </td>
<td><%#Eval("owner_sharetype")%> </td>
<td><%#Eval("owner_effectinterest")%> </td>
<td><%#Eval("owner_deemedinterest")%> </td>
<td><%#Eval("owner_shares")%> </td>