본문 바로가기

GULGUL CODING

검색하기
GULGUL CODING
프로필사진 OKKK굴

  • 01 (30)
    • GULGUL (3)
      • 주절주절 (0)
      • 참고사이트 (1)
      • 굴굴공부 (2)
    • HTML&CSS (3)
      • HTML (3)
      • CSS (0)
    • JS (6)
      • JS (3)
      • Node.JS (0)
      • Express.JS (3)
    • JAVA (1)
      • JAVA(정리) (1)
    • SQL (9)
      • DB (1)
      • ORACLE (8)
    • GIT&SVN (1)
    • 코딩테스트 (2)
      • hackerrank (2)
      • programmers (0)
    • CS (2)
Guestbook
Notice
  • 블로그를 하는 이유
Recent Posts
Recent Comments
Link
  • GITHUB
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • HTML
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록코딩테스트 (2)

GULGUL CODING

Symmetric Pairs

You are given a table, Functions, containing two columns: X and Y. Write a query to output all such symmetric pairs in ascending order by the value of X. List the rows such that X1 ≤ Y1. SELECT DISTINCT f1.x, f1.y FROM functions f1 INNER JOIN functions f2 ON f1.rowid f2.rowid AND f1.x = f2.y AND f1.y = f2.x AND f1.x

코딩테스트/hackerrank 2023. 7. 23. 20:50
Weather Observation Station 5

Weather Observation Station 5 Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. 정답) SELECT city ,length FROM (SELECT city ,LENGTH(city) length ,ROW_NUMBER() OVER(ORDER BY LENGTH(city)..

코딩테스트/hackerrank 2023. 7. 21. 19:43
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바