본문 바로가기

전체 글310

4] 프로그래머스 최솟값 구하기 programmers.co.kr/learn/courses/30/lessons/59038 코딩테스트 연습 - 최솟값 구하기 ANIMAL_INS 테이블은 동물 보호소에 들어온 동물의 정보를 담은 테이블입니다. ANIMAL_INS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE는 각각 동물의 아이디 programmers.co.kr SELECT DATETIME FROM ANIMAL_INS ORDER BY DATETIME LIMIT 1 2020. 11. 4.
3] SQL 프로그래머스 최댓값 구하기 SELECT MAX(DATETIME) AS 시간 FROM ANIMAL_INS ORDER BY DATETIME DESC; SELECT DATETIME AS 시간 FROM ANIMAL_INS ORDER BY DATETIME DESC LIMIT 1; www.w3schools.com/sql/sql_min_max.asp SQL MIN() and MAX() Functions SQL MIN() and MAX() Functions The SQL MIN() and MAX() Functions The MIN() function returns the smallest value of the selected column. The MAX() function returns the largest value of the selecte.. 2020. 11. 3.
2] 프로그래머스 상위 n개 레코드 SELECT NAME FROM ANIMAL_INS ORDER BY DATETIME LIMIT 1; SQL SELECT TOP, LIMIT, ROWNUM SQL TOP, LIMIT or ROWNUM Clause The SQL SELECT TOP Clause The SELECT TOP clause is used to specify the number of records to return. The SELECT TOP clause is useful on large tables with thousands of records. Returning a large number of records can impact pe www.w3schools.com 2020. 11. 2.
1] 프로그래머스 여러 기준으로 정렬하기 programmers.co.kr/learn/courses/30/lessons/59404 SELECT ANIMAL_ID, NAME,DATETIME FROM ANIMAL_INS ORDER BY NAME, DATETIME DESC; 2020. 11. 2.
0] 프로그래머스 어린 동물 찾기 SELECT ANIMAL_ID, NAME FROM ANIMAL_INS WHERE INTAKE_CONDITION != 'Aged' ORDER BY ANIMAL_ID; 2020. 11. 2.
★55] 프로그래머스 실패율 programmers.co.kr/learn/courses/30/lessons/42889# 코딩테스트 연습 - 실패율 실패율 슈퍼 게임 개발자 오렐리는 큰 고민에 빠졌다. 그녀가 만든 프랜즈 오천성이 대성공을 거뒀지만, 요즘 신규 사용자의 수가 급감한 것이다. 원인은 신규 사용자와 기존 사용자 사이에 스 programmers.co.kr 1. 스테이지 별 실패율값을 구하고 2. 실패율 기준으로 정렬하여 3. 그 순서대로 스테이지 번호를 반환한다. 1. #include #include #include #include using namespace std; bool cmp(const pair& a, const pair& b) { if (a.second == b.second) return a.first > b.fi.. 2020. 10. 25.