UPDATE books SET sales_1999 > (SELECT SUM(qty * price) FROM sales WHERE sales.book_id = books.id AND sales.date BETWEEN '01/01/1999' AND '12/31/1999')
Login in to like
Login in to comment
or Read more about SQL Quizzes
Login in to like
Login in to comment