需要对表格进行透视或交叉制表,但不是以传统方式进行。请
我这里有一个小情况..希望你们能帮助我。
我应该查询一个有 4 列的表帐户编号、资源编号、产品编号、客户编号
。
一些 accountNo 有 2 个 ResourceNo(115 和 134),
我必须以这样的方式查询它:我必须显示 resourceNo
值的两个动态列,并在 上放置一个“X” accountNo
其中包含那些ResourceNo
的..以便AccountNo
不会重复..在这种情况下旋转没有帮助。请调查此事并帮助我。
参见
另请参阅
I have a small situation here.. hope you guys can help me out.
I'm supposed to query a table wich has 4 columnsAccountNo, ResourceNo, ProductNo, CustomerNo
.
A few accountNo's have 2 ResourceNo's (115 and 134)
I have to Query it in such a way that I have to show two dynamic columns for the resourceNo
values and put an 'X' against the accountNo
which has those ResourceNo
's.. So that the AccountNo
is not repeated.. Pivoting doesn't help in this situation. Please look into this and help me.
See also
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要穷人的枢轴:
静态列
例如:
示例数据:
示例输出:
动态列
对于动态列,您可以执行以下操作:
You need poor man's pivot:
Static Columns
For example:
Example Data:
Example output:
Dynamic Columns
For dynamic columns you can do this: