lsqlthw ex10
This commit is contained in:
parent
73fdca50d6
commit
513afbebdb
12
lsqlthw-remnants/ex10.sql
Normal file
12
lsqlthw-remnants/ex10.sql
Normal file
@ -0,0 +1,12 @@
|
||||
SELECT * FROM pet;
|
||||
|
||||
UPDATE pet SET name = "Zed's Pet" WHERE id IN (
|
||||
SELECT pet.id
|
||||
FROM pet, person_pet, person
|
||||
WHERE
|
||||
person.id = person_pet.person_id AND
|
||||
pet.id = person_pet.pet_id AND
|
||||
person.first_name = "Zed"
|
||||
);
|
||||
|
||||
SELECT * FROM pet;
|
Loading…
Reference in New Issue
Block a user