[MSSQL] 이전 값으로 NULL 값 대체하기
딥상어동의 딥한생각
0. 문제 SQL을 하다보면 문득 이런 고민에 빠질때가 있습니다. 저기 NULL값을 이전 값으로 대체하고 싶은데... 어떻게 하지? 왜냐하면, SQL에는 Pandas fillna 함수의 ffill과 같은 메서드가 없기 때문인데요. https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.fillna.html pandas.DataFrame.fillna — pandas 1.3.2 documentation If method is specified, this is the maximum number of consecutive NaN values to forward/backward fill. In other words, if there is a gap with ..