GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

The table “Department” was created with the specification be…

The table “Department” was created with the specification below.    CREATE TABLE Department ( Code TINYINT UNSIGNED, Name VARCHAR(20) UNIQUE, ManagerID SMALLINT, Appointment DATE, PRIMARY KEY (Code), UNIQUE (ManagerID, Appointment) );True or False that the two rows below violate the UNIQUE constraints on Department. (12, ‘Marketing’, 2538, ‘2019-11-22’) (99, ‘Marketing’, NULL, NULL)

Read Details

Consider table Worker(name,pay) where name is a key, and the…

Consider table Worker(name,pay) where name is a key, and the following two concurrent transactions.   T1:   Begin Transaction   S1: update Worker set pay = 2*pay where name = ‘Amy’   S2: update Worker set pay = 3*pay where name = ‘Amy’   Commit T2:   Begin Transaction   S3: update Worker set pay = pay-20 where name = ‘Amy’   S4: update Worker set pay = pay-10 where name = ‘Amy’   Commit Assume that the individual statements S1, S2, S3, and S4 always execute atomically. Let Amy’s pay be 50 before either transaction begins execution. Suppose both transactions T1 and T2 execute to completion with isolation level Read-Committed.  What are the possible values for Amy’s final pay?  

Read Details

A NULL value represents _________

A NULL value represents _________

Read Details

A _____ is a collection of values with no inherent order

A _____ is a collection of values with no inherent order

Read Details

Refer to the Product table. Which of the following would com…

Refer to the Product table. Which of the following would complete the SQL statement to select all products with sizes 0-3M, 3-6M, and 6-9M (Select all options that would work). SELECT ProductName, Quantity FROM Product WHERE Size _____ (‘0-3M’, ‘3-6M’, ‘6-9M’);

Read Details

Refer to the Product table. Complete the SQL statement to se…

Refer to the Product table. Complete the SQL statement to select the two set…… ‘Cosmic Encounters Expansion Set’ and ‘Terraforming Mars Expansion Set’. ProductID Product Name Price Quantity 012 Cosmic Encounters Expansion Set 95.99 12 011 Terraforming Mars 69.95 6 143 Mousetrap 56.95 12 214 Terraforming Mars Expansion Set 95.99 18 421 Cosmic Encounters Basic 49.95 6 129 Azul 44.99 24 SELECT ProductName, Quantity FROM Product WHERE ProductName LIKE _____;

Read Details

Which of the following is in SQL but is not a relational alg…

Which of the following is in SQL but is not a relational algebra operation?  

Read Details

Complete the ORDER BY clause to sort the Products by Product…

Complete the ORDER BY clause to sort the Products by ProductName alphabetically, then Quantity from the smallest to the largest. SELECT ProductName, Size, Quantity, SupplierId FROM Product ORDER BY _____ ;

Read Details

Refer to the following tables: Employee ID Name Salary…

Refer to the following tables: Employee ID Name Salary 4428 Amin Shah 42500 5993 Malia Tarkas 53000 Student ID Name Scholarship 1408 Indira 3000 5993 Malia Tarkas 7110 Jiho Chen 4500 How many rows are in the table defined by the following relational algebra expression?

Read Details

Refer to the tables. Which products are returned by the quer…

Refer to the tables. Which products are returned by the query below? SELECT ProductName FROM Product P WHERE NOT EXISTS (SELECT * FROM Sales WHERE ProductID = P.ProductID);

Read Details

Posts pagination

Newer posts 1 … 15 16 17 18 19 … 80,932 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top