사용자 정의 함수: https://www.mysqltutorial.org/mysql-stored-function/ if statement: https://www.mysqltutorial.org/mysql-if-statement/ case vs if statement vs if function 차이 참고: https://stackoverflow.com/questions/30047983/mysql-case-vs-if-statement-vs-if-function 조건이 여러개이고 순차적이라면 case 쓰기! (if function은 standard sql이 아니라서 postgresql에는 적용 안된다.) 177. Nth Highest Salary https://leetcode.com/problems/nth-h..