欢迎光临散文网 会员登陆 & 注册

[database-leetcode]1777 Product's Price for Each Store

2021-03-13 08:18 作者:您是打尖儿还是住店呢  | 我要投稿

Write an SQL query to find the price of each product in each store.

Return the result table in any order.

The query result format is in the following example:

sql:

题目属于简单型:

使用case when做条件判断,然后进行分析,最后sum进行汇总,这种一般要小心是否需要distinct,其他没有问题,


[database-leetcode]1777 Product's Price for Each Store的评论 (共 条)

分享到微博请遵守国家法律