求助一道SQL题目
sql吧
全部回复
仅看楼主
level 1
Mood_MAX 楼主
有如下两张表:
表1:浏览商品表
create table visit(
id integer not null, -- 商品id
cate string not null, -- 商品类别
user_name string not null, -- 浏览用户名
date string not null -- 浏览日期 );
表2:订单表
create table order(
order_id integer not null, -- 订单id
user_name string not null, -- 用户名
id integer not null, -- 商品id
amount double not null, -- 销售额
date string not null -- 下单日期 );
问题:2012年1月1日浏览了某类别商品,且在2012年1月2日下单了同品类商品的用户,计算这些用户在2012年1月2日该品类下的总销售额。
2020年03月11日 05点03分 1
level 1
Mood_MAX 楼主
没人回答吗,顶一下自己
2020年03月11日 09点03分 2
1