728x90

https://leetcode.com/problems/customer-placing-the-largest-number-of-orders/

 

[problem]

 order_number가 가장 많은 customer 출력

[anlysis]

1. order no 가장많은 =  select top 1이용

2. count(*) 

select 변수 order by count(*)를 통해 행의 개수를 출력할 수 있다

 

[solution]

728x90

+ Recent posts