Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Insert into the NONGAME table the item number, description, number of units o

ID: 3682195 • Letter: 2

Question

2. Insert into the NONGAME table the item number, description, number of units on hand, category, and unit price from the ITEM table for each item that is not in category GME.

3. In the NONGAME table, change the description of item number DL51 to “Classic Train Set.”

4. In the NONGAME table, increase the price of each item in category TOY by two percent. (Hint: Multiply each price by 1.02.)

5. Add the following item to the NONGAME table: item number: TL92; description: Dump Truck; number of units on hand: 10; category: TOY; and price: 59.95.

6. Delete every item in the NONGAME table for which the category is PZL.

7. In the NONGAME table, change the category for item FD11 to null.

8. Add a column named ON_HAND_VALUE to the NONGAME table. The on-hand value is a seven-digit number with two decimal places that represents the product of the number of units on hand and the price. Then set all values of ON_HAND_VALUE to ON_HAND * PRICE.

9. In the NONGAME table, increase the length of the DESCRIPTION column to 40 characters.

10. Remove the NONGAME table from the TAL Distributors database.

Explanation / Answer

2.) INSERT INTO NONGAME (item number,description,category,price) SELECT

item number,description,category,price FROM ITEM WHERE category <> "GME"

3.)  UPDATE NONGAME SET description = "Classic Train Set" where item number = "DL51";

4.) UPDATE NONGAME SET price = price*1.02 where category = "TOY";

5.) INSERT INTO NONGAME (item number,description,category,price) VALUES ("TL92","Dump Truck",10,59.95);

6.) DELETE FROM NONGAME WHERE category = "PZL";

7.) UPDATE NONGAME SET category = NULL WHERE item number = "FD11";

8.) ALTER TABLE NONGAME ADD ON_HAND_VALUE VARCHAR(40) ;

9.) ALTER TABLE NONGAME MODIFY DESCRIPTION VARCHAR(40) ;

10.) DROP TABLE NONGAME;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote