create table c
(
cid int identity(1,1) primary key,
ctype nvarchar(50)
)
create table s
(
sid int identity(1,1) primary key,
cid int not null,
order_date datetime not null,
amt int
)
1.以cid分组,统计每个月不同产品(CID)的数量
2.以cid分组,统计每个月不同产品(CID)的数据
已移动ChiYau2011年9月4日 20:40這問題應該是和SQL 有關..所以發在SQL Server 版比較合適 (发件人:Visual C#)
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.