[SQL] 조회수가 가장 많은 중고거래 게시판의 첨부파일 조회하기

NoHae·2025년 10월 31일

SQL

목록 보기
84/86

문제 출처

코딩테스트 연습 > String, Date > 조회수가 가장 많은 중고거래 게시판의 첨부파일 조회하기
https://school.programmers.co.kr/learn/courses/30/lessons/164671

문제 설명

접근 방법

select concat('/home/grep/src','/',board_id,'/',file_id, file_name, file_ext) as FILE_PATH
from used_goods_file
where board_id = (
    select board_id
    from used_goods_board
    order by views desc
    limit 1
)
order by file_id desc

알게된 점

문제푼 흔적

profile
노력 해보려고 하는 사람(00년생 소프트웨어융합학과, 24년 12월 부터 백엔드 및 코테 공부 시작)

0개의 댓글