inblog logo
|
silver
    SQL문제풀기

    [SQL문제풀기] Find the percentage of shipable orders

    silver's avatar
    silver
    Jan 26, 2026
    [SQL문제풀기] Find the percentage of shipable orders
    Contents
    문제내가 작성한 정답

    문제

    StrataScratch - Find the percentage of shipable orders
    StrataScratch
    StrataScratch - Find the percentage of shipable orders
    https://platform.stratascratch.com/coding/10090-find-the-percentage-of-shipable-orders/official-solution?code_type=7

    내가 작성한 정답

    MySQL, PostgreSQL, Oracle

    select count(case when address is not null then o.id end)*100.00/count(o.id) percent_shipable from orders o join customers c on o.cust_id = c.id;
    Share article
    Contents
    문제내가 작성한 정답

    silver

    RSS·Powered by Inblog