23. Suppose that, instead of having just a sellers table, we have two tables: a sellers table and a locations table, and
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
23. Suppose that, instead of having just a sellers table, we have two tables: a sellers table and a locations table, and
22. Suppose that you have a sellers table, with a location column, and you'd like to update the location of every seller in the table that was in Olympus Mons to now be on Pavonis Mons; which of the following SQL statements is correct? (5 Points) UPDATE sellers(location) WITH "Pavonis Mons" WHERE location LIKE "Olympus%" UPDATE sellers SET location = "Pavonis Mons" WHERE location LIKE "Olympus%"; INSERT INTO sellers(location) VALUES ("Chasm City") WHERE id = 15; More than one of the above is correct None of the above is correct 4
21. Suppose that you have a Sellers table, which has an address field. You'd like to update the address for Chasm City Florists, which has an ID of 15; which of the following is correct? (4 Points) UPDATE sellers(address) WITH "123 Chasm City" WHERE id = 15; UPDATE sellers SET address = "123 Chasm City" WHERE id = 15; INSERT INTO sellers (address) VALUES ("Chasm City") WHERE id = 15; More than one of the above is correct None of the above are correct