게으른 에벌레의 코딩월드

게으른 에벌레의 코딩월드

  • 분류 전체보기 (58)
    • Today I Learned (TIL) (18)
    • Weekly I learned (WIL) (1)
    • 어째 개발자가 되어가나? (6)
    • Django (10)
    • Python (11)
    • AI (3)
    • Algorithms (1)
    • SQL (3)
    • 과제 (3)
    • code, 단축키 모음 (1)
    • Job hunting (1)
  • 홈
  • 태그
  • 방명록
  • Absolem's github
RSS 피드
로그인
로그아웃 글쓰기 관리

게으른 에벌레의 코딩월드

컨텐츠 검색

태그

초보개발자 PostgreSQL til Postman API GitHub 코딩초보 장고 파이썬 개발새발자 cluade vs. gpt drf Python Django 스파르타코딩클럽 내배캠 Programmers 스파르타 Ai 프로그래머스 인공지능

최근글

댓글

공지사항

아카이브

SQL(3)

  • [SQL] sub query, case, table

    select user_id , name, email from users where user_id in ( select user_id from orders where payment_method = 'kakaopay' ) select c.checkin_id , c2.title , c.user_id , c.likes, ( select round(avg(likes),1) from checkins c where course_id = c.course_id ) as course_avg from checkins c inner join courses c2 on c.course_id = c2.course_id select pu.user_id, pu.point, (case when pu.point > 10000 then '..

    2023.08.17
  • [SQL] left join, inner join, group by, order by, count

    Left join: 왼쪽에 붙이는 것. 해당되는 값이 없는 경우에는 Null로 표기됨 Inner join: 교집합이 나온다. 같이 공유하는 리스트를 중심으로 붙여짐. select * from enrolleds e inner join users u on e.user_id = u.user_id Immerge by course_id, count couse_id and title, and show the head of them. select c1.course_id, c2.title, count(*) as cnt from checkins c1 inner join courses c2 on c1.course_id = c2.course_id group by c1.course_id select pu.user_id , u..

    2023.08.16
  • [SQL] count, group by, where, like

    select payment_method, count(*) from orders group by payment_method kakaopay 56 CARD 218 TAXBILL 4 MONEY 8 select payment_method, count(*) from orders where course_title = '앱개발 종합반' group by payment_method kakaopay 34 CARD 111 MONEY 5 TAXBILL 3 select name, count(*) from users where email like "%gmail.com" group by name 신** 7 이** 29 강** 5 김** 32 심** 3 남** 5 문** 1 손** 1 윤** 3 안** 1 권** 4 박** 7 유*..

    2023.08.16
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바