You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write an SQL query to count the number of apples and oranges in all the boxes. If a box contains a chest, you should also include the number of apples and oranges it has.
The query result format is in the following example.
'''
select
sum(boxes.apple_count) + IFNULL(SUM(chests.apple_count), 0) as apple_count ,