Created
February 20, 2013 10:00
-
-
Save jasalt/4994404 to your computer and use it in GitHub Desktop.
sqldemo5_t6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 6. Kaikille niille projekteille, jotka ovat tulleet toimeen ilman koirrua | |
-- (onimi = ’koirru’), on myönnetty ylimääräinen 5 000 euron | |
-- budjettikorotus. Päivitä vastaavasti tietokantaa. [päivitys koskee | |
-- seuraavia projekteja: Tuubero, Talluke, Iklore, Tuomake, Tuma, Teklari, | |
-- Aboma] | |
UPDATE projekti | |
SET budjetti = budjetti + 5000 | |
WHERE ptun NOT IN | |
(SELECT ptun | |
FROM toimitus | |
WHERE otun NOT IN | |
(SELECT otun | |
FROM osa | |
WHERE onimi NOT LIKE 'koirru')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment