如何在ms访问数据库中获取输出 [英] how can i get the output in ms access database

查看:59
本文介绍了如何在ms访问数据库中获取输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ms访问数据库中的分配表格如下:


Allotment table as follows in Ms access database

Sdate      Period  Staff
14/5/2013   1       TR
14/5/2013   2       MD
15/5/2013   1       SG
15/5/2013   2       GV





来自上面的分配表,我想在ms访问数据库中输出如下





from the above Allotment table, i want the output as follows in ms access database

Sdate        Period1     Period2
14/5/2013     TR           MD
15/5/2013     SG           GV





获取以上输出如何在ms访问数据库中编写查询。



Rgds,

narasiman P.



for getting a above output how can i write the query in ms access database.

Rgds,
narasiman P.

推荐答案

看看这里:

如何:转置表2000中的数据或Access 2000中的查询 [ ^ ]

使用SQL将数据从列转换为行 [ ^ ]

并试一试你自己。
Have a look here:
HOW TO: Transpose Data in a Table or Query in Access 2000[^]
Transpose data from columns into rows using SQL[^]
and try to it by yourself.


这篇关于如何在ms访问数据库中获取输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆