~/ learn/ postgresql/ cards/ UPDATE and DELETE
1 of 2

Raise the price of every poetry book by 10% and RETURN title and the new price.

Raise the price of every poetry book by 10% and RETURN title and the new price.

Answer

UPDATE books SET price = price * 1.10 WHERE genre = 'poetry' RETURNING title, price;

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/4475ec21-caf0-4332-98d2-9ce971aac276/flashcard utf-8 LF