date_format(DATE_OF_BIRTHDAY, '%Y-%m-%d')
reference : https://devjhs.tistory.com/89
column is not null
SELECT date_format(SALES_DATE,'%Y-%m-%d') as SALES_DATE , PRODUCT_ID , NULL AS USER_ID , SALES_AMOUNT
Null as column 으로 특정 컬럼 Null로 바꾸기
reference : https://devjhs.tistory.com/89
SELECT DATE_FORMAT(SALES_DATE, '%Y-%m-%d') AS SALES_DATE, PRODUCT_ID, USER_ID,SALES_AMOUNT FROM ONLINE_SALE WHERE YEAR(SALES_DATE) = '2022' AND MONTH(SALES_DATE) = '3'
select 절에서 where 걸어서 조건을 줘도 된다! 이게 subquery??
출처 : programmers