Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ec1ba9b

Browse files
committed
[SQL] 조회수가 가장 많은 중고거래 게시판의 첨부파일 조회하기_241017
1 parent 01371aa commit ec1ba9b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- https://school.programmers.co.kr/learn/courses/30/lessons/164671
2+
SELECT
3+
CONCAT('/home/grep/src/',ugf.BOARD_ID,'/',ugf.FILE_ID,ugf.FILE_NAME,ugf.FILE_EXT) FILE_PATH
4+
FROM USED_GOODS_BOARD ugb
5+
INNER JOIN USED_GOODS_FILE ugf
6+
ON ugb.BOARD_ID = ugf.BOARD_ID
7+
WHERE ugb.VIEWS = (SELECT MAX(VIEWS) FROM USED_GOODS_BOARD)
8+
ORDER BY ugf.FILE_ID DESC;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /