inblog logo
|
stupefyee
    SQL문제풀기

    24.11.13. SQL 문제 풀이

    Stupefyee's avatar
    Stupefyee
    Nov 13, 2024
    24.11.13. SQL 문제 풀이
    Contents
    1. 조건에 부합하는 중고거래 댓글 조회하기2. 인기있는 아이스크림

    1. 조건에 부합하는 중고거래 댓글 조회하기

    notion image
    💡
    SELECT a.title, a.board_id, b.reply_id, b.writer_id, b.contents, DATE_FORMAT(b.created_date, '%Y-%m-%d') AS created_date FROM used_goods_board AS a JOIN used_goods_reply AS b ON a.board_id = b.board_id WHERE DATE(a.created_date) BETWEEN '2022-10-01' AND '2022-10-31' ORDER BY b.created_date ASC, a.title ASC;

    2. 인기있는 아이스크림

    notion image
    💡
    SELECT flavor FROM first_half ORDER BY total_order DESC, shipment_id ASC;
    Share article
    Contents
    1. 조건에 부합하는 중고거래 댓글 조회하기2. 인기있는 아이스크림

    stupefyee

    RSS·Powered by Inblog