Suppose we have two relations Sells (bar, beer, price) Beers…

Suppose we have two relations Sells (bar, beer, price) Beers (name, manf) And the Sells table includes a foreign key constraint on beer, referencing the Beers table. The foreign key is defined as: FOREIGN KEY (beer) REFERENCES Beers (name) ON DELETE SET NULL ON UPDATE CASCADE; What happens when a record in the Sells table with beer =’Budweiser’ is updated to beer =’Bud Light’? Assuming we have a record in the Beers relation with name =’Budweiser’ 

Consider the relations Sells (bar, beer,price) and Beers (na…

Consider the relations Sells (bar, beer,price) and Beers (name, manf) and the following view that has been created to list beers sold in specific bars:   CREATE VIEW BeersView AS SELECT beer, price FROM Sells WHERE beer IN (SELECT name FROM Beers WHERE manf = ‘Anheuser-Busch’);   Is this view updatable?       

Consider two tables, Sells and Beers, with the following sch…

Consider two tables, Sells and Beers, with the following schema:   CREATE TABLE Beers (    name VARCHAR(50) PRIMARY KEY,    manf VARCHAR(50));   CREATE TABLE Sells (    bar VARCHAR(50),    beer VARCHAR(50),    price DECIMAL(5,2),    FOREIGN KEY (beer) REFERENCES Beers(name));   What happens if the following INSERT statement is executed? INSERT INTO Beers(name, manf) VALUES (‘Bud Light’, ‘Anheuser’);