https://medium.com/@alfredkondoro/how-do-i-perform-conditional-logic-programming-if-else-statements-in-an-sql-select-852463c9ce06