热线电话:13121318867

登录
2020-04-29 阅读量: 798
SQL面试题1

1. 对deposite、customer、bank进行查询,查询条件为location在广州、苏州、济南的客户,存款在300000至500000之间的存款记录,显示客户姓名name、银行名称bank_name、存款金额amount.

select customer.name, bank_name,amount,location from

deposite left join bank on deposite.b_id=bank.b_id

left join customer on deposite.c_id=customer.c_id

where (location='广州'or location='苏州' or location='济南')

and amount between 300000 and 500000 group by bank_name;

1.2064
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子