반응형 분류 전체보기151 [MySQL] Higher Than 75 Marks ▶ SQL > Basic Select > Higher Than 75 Marks Problem Query the Name of any student in STUDENTS who scored higher than Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby, Robby, etc.), secondary sort them by ascending ID. → Marks가 75 보다 높은 학생들을 쿼리. 이름의 마지막 3글자로 정렬하고 중복된다면 ID로 정렬 Input For.. 2021. 4. 13. [Kotlin] 함수와 함수형 프로그래밍 (2) - 고차함수와 람다식 모든 내용은 Do it! 코틀린 프로그래밍을 바탕으로 정리한 것입니다. 고차 함수와 람다식 다른 함수를 인자로 사용하거나 함수를 결과값으로 반환하는 함수 고차 함수의 형태 일반 함수를 인자나 반환값으로 사용하는 고차 함수 함수의 인자로 함수를 사용하는 예제 fun main() { val res1 = sum(3, 2) val res2 = mul(sum(3, 3), 3) println("res1: $res1, res2: $res2") } fun sum(a: Int, b: Int) = a+b fun mul(a: Int, b: Int) = a*b 함수를 반환값으로 사용하는 예제 fun main() { println("funcFunc: ${funcFunc()}") } fun funcFunc(): Int{ retu.. 2021. 4. 7. [MySQL] Weather Observation Station 12 ▶ SQL > Basic Select > Weather Observation Station 12 Problem Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 시작하지 않고 모음으로 끝나지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^aeiou]' AND CITY REGEXP '[^aeiou]$' * R.. 2021. 4. 7. [MySQL] Weather Observation Station 11 ▶ SQL > Basic Select > Weather Observation Station 11 Problem Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 시작하지 않거나 모음으로 끝나지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^aeiou]' OR CITY REGEXP '[^aeiou]$' * R.. 2021. 4. 7. [MySQL] Weather Observation Station 10 ▶ SQL > Basic Select > Weather Observation Station 10 Problem Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 끝나지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[^aeiou]$' * REGEXP에 대한 내용은 Weather Observation Station 6 포스팅 참고 2021. 4. 5. [MySQL] Weather Observation Station 9 ▶ SQL > Basic Select > Weather Observation Station 9 Problem Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 시작하지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^aeiou]' * REGEXP에 대한 내용은 Weather Observation Station 6 포스팅 참고 2021. 4. 5. 이전 1 ··· 19 20 21 22 23 24 25 26 다음 반응형