본문 바로가기

JG Story

검색하기
JG Story
프로필사진 JG_lee

  • 분류 전체보기 (56)
    • ENGLISH (9)
      • OPIC (9)
      • TOEIC (0)
    • LIFE (14)
      • 축구 (6)
      • 음악 (0)
      • 여행 (0)
      • 맛집 (1)
      • 일상 (3)
      • 꿀팁 (3)
      • 자기개발 (1)
    • IT (24)
      • Network (7)
      • Linux (7)
      • DB (5)
      • Trend (3)
      • 보안 (2)
      • Cloud (0)
    • 정보보안기사 (8)
      • 필기 (5)
      • 실기 (2)
Guestbook
300x250
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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 31
Tags
  • 플래그분석
  • stateful
  • stateless
  • select
  • 네트워크 통신분석
  • 풋살
  • stateful&stateless 예시
  • 방화벽 세션관리
  • 헤딩골
  • 수중전
  • 네트워크
  • sql
  • 서현풋살
  • tcp플래그
  • postgres
  • TCP flag
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록sql (1)

JG Story

[ Postgres ] 데이터 조회 ( Select 문 활용_1 )

1. 시간 기준 가장 먼저 ~한 대상 조회 ex) select name from animal_ins where datetime = (select min(datetime) from animal_ins); -> animal_ins 테이블에서 가장 먼저 들어온 동물 이름 조회 2. 중복된 데이터 제거 후 갯수 조회 ex) select count(distinct(name)) as name_count from animal_ins; -> animal_ins 테이블에서 중복된 이름은 하나로 취급하고, null 값은 집계하지 않도록 하여 총 이름 개수 조회 3. 중복된 데이터 대상 갯수 조회 ex) select name, count(name) from animal_ins where name is not null gro..

IT/DB 2022. 3. 29. 00:26
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바