GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

A relation is in 3NF if, for every non-trivial functional de…

A relation is in 3NF if, for every non-trivial functional dependency X→Y, which of the following conditions hold?

Read Details

Which of the following best describes a row-level trigger?

Which of the following best describes a row-level trigger?

Read Details

What is the primary purpose of creating an index on a databa…

What is the primary purpose of creating an index on a database table?  

Read Details

Consider the relation Sells (bar, beer, price) And suppose w…

Consider the relation Sells (bar, beer, price) And suppose we added this tuple-based check   CHECK (bar = ‘Joe”s Bar’ OR price

Read Details

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’);  

Read Details

Consider the relation Sells (bar, beer, price) and the follo…

Consider the relation Sells (bar, beer, price) and the following view that has been created: CREATE VIEW ExpensiveBeers AS SELECT DISTINCT beer, price FROM Sells WHERE price > 5.00;   What happens when you attempt to update the ExpensiveBeers view?  

Read Details

Given this trigger:  CREATE TRIGGER RoundPriceBEFORE INSERT…

Given this trigger:  CREATE TRIGGER RoundPriceBEFORE INSERT ON SellsFOR EACH ROWSET NEW.price = ROUND(NEW.price);     A User attempts to execute the following statement on Sells (Bar, Beer, Price):     INSERT INTO Sells (bar, beer, price) VALUES (‘Joe”s Bar’, ‘Corona’, 4.75); What will happen to the price value inserted into the Sells table?    

Read Details

How does the timing of execution differ between constraints…

How does the timing of execution differ between constraints and triggers in a database?

Read Details

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 Beer table had a record of Bud Light and the following Delete statement is executed? Delete from Sells Where beer = ‘ Bud Light’

Read Details

An AP Axial (Towne method) Skull image demonstrated the fora…

An AP Axial (Towne method) Skull image demonstrated the foramen magnum ‘closed off’. What was the error, if any?

Read Details

Posts pagination

Newer posts 1 … 33,848 33,849 33,850 33,851 33,852 … 92,915 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top