~/ 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/3c397614-a11c-4455-bb83-30c3bb83d27e/flashcard utf-8 LF