CASE WHEN DATEDIFF(CURRENT_DATE,books_transaction.date_out)>10 THEN UPDATE books_transaction SET books_transaction.fine = 50 ELSE UPDATE books_transaction SET books_trans