분류 전체보기139 HackerRank SQL - Placements You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID and Friend_ID (ID of the ONLY best friend). Packages contains two columns: ID and Salary (offered salary in $ thousands per month). Write a query to output the names of those students whose best friends got offered a higher salary than them. Names must be order.. 2023. 2. 5. HackerRank SQL - SQL Project Planning You are given a table, Projects, containing three columns: Task_ID, Start_Date and End_Date. It is guaranteed that the difference between the End_Date and the Start_Date is equal to 1 day for each row in the table. If the End_Date of the tasks are consecutive, then they are part of the same project. Samantha is interested in finding the total number of different projects completed. Write a query.. 2023. 2. 2. HackerRank SQL - Contest Leaderboard You did such a great job helping Julia with her last coding contest challenge that she wants you to work on this one, too! The total score of a hacker is the sum of their maximum scores for all of the challenges. Write a query to print the hacker_id, name, and total score of the hackers ordered by the descending score. If more than one hacker achieved the same total score, then sort the result b.. 2023. 1. 31. 엑셀(excel) - 데이터 검색하여 값 불러오기(VLOOKUP 함수 활용) 이번엔 좀 더 상황을 부여해서 vlookup함수를 활용해보려고 한다. 당신이 회사의 인사담당자이고, 임직원의 교육훈련을 담당하고 있다고 가정해보자. 핵심 KPI는 임직원이 모두 필요한 학점을 이수하고 교육훈련을 성공적으로 마치는 것이라면, 연말이 되기 전에 각 직원의 이수여부와 미달학점을 알려주는 것이 필요할 것이다. 그러나 개인별 학점이수 현황이 민감한 정보는 아니지만 전체 공개할 필요는 없을 것 같다면, vlookup함수를 활용해 간단한 엑셀 프로그램을 만들어볼 수 있다. 파일 다운로드 작업 시트 준비 지금 가지고 있는 정보는 각 임직원의 현재 취득학점 정보와 직급별 필요학점 정보이다. 마지막으로 검색으로 값을 불러올 수 있도록 보여주는 시트도 필요하다. 자 이제 뭘 만들거냐면, 사번을 입력하면 모든.. 2023. 1. 30. 엑셀(excel) - 숫자 범위의 값으로 IF 함수 대체하기(VLOOKUP 함수 활용) 보통 여러 엑셀 관련 서적이나 블로그에서 IF함수를 중첩으로 넣어서 점수별로 값을 치환하는 예시를 많이 든다. 최신 버전 오피스(Microsoft Office)에서는IFS 함수를 만들어서 좀 더 쉽게 구현을 하지만 헷갈리고 복잡하다.(특히 괄호 넣기) 솔직히 함수 넣을때마다 헷갈려서 이 방법은 잘 안쓰고 숫자 형식과 매칭된다면 VLOOKUP으로 대체해서 사용하고 있다. VLOOKUP 함수로 IF 함수(IFS) 대체하기 숫자형식의 기준과 치환하고자 하는 값이 있다면 가능하다. 반드시 기준열은 숫자형식이어야만 한다. 우선 방금 예시로 든 평가표를 다시 가져와서,옆에 평가 기준점수표을 만들어준다. 이때 주의사항이 두 가지가 있다. ① 기준표의 기준열의 값은 반드시 오름차순으로 정렬되어야 한다. 이건 중첩IF문.. 2023. 1. 30. HackerRank SQL - Ollivander's Inventory Harry Potter and his friends are at Ollivander's with Ron, finally replacing Charlie's old broken wand. Hermione decides the best way to choose is by determining the minimum number of gold galleons needed to buy each non-evil wand of high power and age. Write a query to print the id, age, coins_needed, and power of the wands that Ron's interested in, sorted in order of descending power. If more .. 2023. 1. 29. HackerRank SQL - Challenges Julia asked her students to create some coding challenges. Write a query to print the hacker_id, name, and the total number of challenges created by each student. Sort your results by the total number of challenges in descending order. If more than one student created the same number of challenges, then sort the result by hacker_id. If more than one student created the same number of challenges .. 2023. 1. 29. HackerRank SQL - Draw The Triangle 1, 2 P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5): * * * * * * * * * * * * * * * Write a query to print the pattern P(20). Problem 패턴 P(20)을 출력하는 쿼리을 작성하라. (패턴 P는 행의 갯수만큼 '*'를 반복해서 출력함) Answer1 WITH RECURSIVE my_cte AS ( SELECT 1 AS n UNION ALL SELECT 1+n FROM my_cte WHERE n 2023. 1. 25. 이전 1 ··· 10 11 12 13 14 15 16 ··· 18 다음