由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 问一个简单的Query
相关主题
Re: Recordset - I stuck! Help!Is "Dim mydb as database" a user-defined datatype
Help on Oracle Query关于Acess的简单问题
query questionsORACLE+VC产生巨大临时文件
Need help, about select count(xyz) from ...这句SQL怎么写?
如何做到?不可不看can I create a recordset with cursor?
can i ...?access 2000 的问题,虚心请教!
Any suggestion on Access database learning?一个SQL query的问题
ADO & DAO &SQL...Help...纪录查找问题
相关话题的讨论汇总
话题: abc话题: acct话题: deg话题: def话题: num
进入Database版参与讨论
1 (共1页)
c**t
发帖数: 2744
1
Table:
Cat Acct num
1 abc x
2 abc y
1 def z
2 deg x

I want to get recordset like:
Acct Cat1 Cat2 num
abc x y x+y
def z 0 z
deg 0 x x
Thx
b*e
发帖数: 3845
2
what if you have one more abc,
so the number of column will be uncertain.

【在 c**t 的大作中提到】
: Table:
: Cat Acct num
: 1 abc x
: 2 abc y
: 1 def z
: 2 deg x
:
: I want to get recordset like:
: Acct Cat1 Cat2 num
: abc x y x+y

c**t
发帖数: 2744
3
The distinct cat is fixed.
If there has one more record " 1 abc x1",
to do this:
abc sum(x) sum(y) sum(x)+sum(y)

【在 b*e 的大作中提到】
: what if you have one more abc,
: so the number of column will be uncertain.

1 (共1页)
进入Database版参与讨论
相关主题
纪录查找问题如何做到?不可不看
Question 2: distributed database question?can i ...?
[转载] ASP古怪问题Any suggestion on Access database learning?
Question about ADO's RecordsetADO & DAO &SQL...Help...
Re: Recordset - I stuck! Help!Is "Dim mydb as database" a user-defined datatype
Help on Oracle Query关于Acess的简单问题
query questionsORACLE+VC产生巨大临时文件
Need help, about select count(xyz) from ...这句SQL怎么写?
相关话题的讨论汇总
话题: abc话题: acct话题: deg话题: def话题: num