[mysql/oracle] 3월에 태어난 여성 회원 목록 출력하기
              
          2023. 2. 3. 22:26ㆍProgrammers/SQL
문제

결과

mysql
| 1 2 3 4 5 6 7 | SELECT member_id, member_name, gender        , date_format(date_of_birth, '%Y-%m-%d') date_of_birth from member_profile where gender = 'W'        and month(date_of_birth) = '03'        and tlno is not null order by member_id | cs | 
oracle
| 1 2 3 4 | SELECT member_id, member_name, gender , to_char(date_of_birth, 'yyyy-mm-dd') date_of_birth from member_profile where gender = 'W'  and to_char(date_of_birth, 'mm') = '03' and tlno is not null order by member_id | cs | 
'Programmers > SQL' 카테고리의 다른 글
| [mysql/oracle] 특정 옵션이 포함된 자동차 리스트 구하기 (0) | 2023.02.09 | 
|---|---|
| [mysql/oracle] 자동차 평균 대여 기간 구하기 (0) | 2023.02.09 | 
| [mysql/oracle] 입양 시각 구하기(1) (0) | 2023.02.03 | 
| [mysql/oracle] 진료과별 총 예약 횟수 출력하기 (0) | 2023.02.03 | 
| [mysql / oracle] 가격대 별 상품 개수 구하기 (2) | 2023.02.03 |