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

Investigate #19

@cq2li

Description

@cq2li

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions