LeetCode(数据库)- 苹果和橘子的个数

简介: LeetCode(数据库)- 苹果和橘子的个数

题目链接:点击打开链接

题目大意:略。

解题思路:略。

AC 代码

SELECT SUM(b.apple_count + IFNULL(c.apple_count, 0)) apple_count, SUM(b.orange_count + IFNULL(c.orange_count, 0)) orange_count
FROM Boxes b LEFT JOIN Chests c USING(chest_id)
目录
相关文章
|
5月前
|
SQL
leetcode-SQL-1445. 苹果和桔子
leetcode-SQL-1445. 苹果和桔子
32 1
|
数据库
数据库LeetCode每日练习(三)
数据库LeetCode每日练习(三)
数据库LeetCode每日练习(三)
|
SQL 数据库
数据库LeetCode每日练习(二)
数据库LeetCode每日练习(二)
数据库LeetCode每日练习(二)
|
SQL 数据库
数据库LeetCode每日练习(一)
数据库LeetCode每日练习(一)
数据库LeetCode每日练习(一)
|
数据库
LeetCode(数据库)- Hopper Company Queries II
LeetCode(数据库)- Hopper Company Queries II
91 0
LeetCode(数据库)- Hopper Company Queries II
|
数据库
LeetCode(数据库)- 2142. The Number of Passengers in Each Bus I
LeetCode(数据库)- 2142. The Number of Passengers in Each Bus I
193 0
|
数据库
LeetCode(数据库)- The Number of Seniors and Juniors to Join the Company II
LeetCode(数据库)- The Number of Seniors and Juniors to Join the Company II
108 0
|
数据库
LeetCode(数据库)- Number of Accounts That Did Not Stream
LeetCode(数据库)- Number of Accounts That Did Not Stream
112 0
|
数据库
LeetCode(数据库)- The Airport With the Most Traffic
LeetCode(数据库)- The Airport With the Most Traffic
121 0
|
数据库
LeetCode(数据库)- The Category of Each Member in the Store
LeetCode(数据库)- The Category of Each Member in the Store
111 0
下一篇
无影云桌面