[sql] Can you have if-then-else logic in SQL?