[LeetCode/MySQL50] 1148. Article Views I
2025. 1. 12. 15:33ㆍ개인활동/코테
반응형
Problem
Solution
# Write your MySQL query statement below
select distinct author_id id from Views
where author_id = viewer_id
order by id ASC;
MySQL Select문 중복 제거 : DISTINCT
MySQL Select문 컬럼 명 재명명 : SELECT real_column_name (AS) change_name ...
정렬
ASC : 오름차순
DESC : 내림차순
반응형
'개인활동 > 코테' 카테고리의 다른 글
[LeetCode/MySQL50] 1378. Replace Employee ID With The Unique Identifier (0) | 2025.01.13 |
---|---|
[LeetCode/MySQL50] 1683. Invalid Tweets (0) | 2025.01.13 |
[LeetCode/MySQL50] 595. Big Countries (0) | 2025.01.12 |
[LeetCode/MySQL50] 584. Find Customer Referee (0) | 2025.01.11 |
[LeetCode/MySQL50] 1757. Recyclable and Low Fat Products (0) | 2025.01.11 |