Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Investigate #19

Open
cq2li opened this issue Apr 22, 2024 · 0 comments
Open

Investigate #19

cq2li opened this issue Apr 22, 2024 · 0 comments

Comments

@cq2li
Copy link
Collaborator

cq2li commented Apr 22, 2024

select order_id, sum(quantity * price) as total from prices inner join orders on prices.item_id = orders.item_id group by order_id order by sum(quantity * price)

select order_id, sum(quantity * price) as total from prices inner join orders on prices.item_id = orders.item_id group by order_id order by total

First query overflows stack, second query works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant