100分收购一个SQL语句???请大家帮帮忙!!!

gengwanshanreally gengwanshanreally 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我的数据库是这样的:
Id int identity(1,1) primary key not null,
Category varchar(10) not null, --收入、支出
Item varchar(20) not null, --项目:音响、键盘
Date datetime not null, --日期
MyMoney money not null, --金额
Remark varchar(max) --备注

我想输出的数据是这样的:
日期 收入 支出
2008-11-11 5.00 2.00
2008-12-12 10.00 7.00

请问各位大虾这样该怎么做啊?第一个回答对的给80分!希望大家尽快回复。
...全文

相关推荐

评论 17
收藏 已收藏
分享
返回顶部
gengwanshanreally
.NET社区 62,274 成员 668,968 内容