79525895

Date: 2025-03-21 15:28:45
Score: 1
Natty:
Report link

1 and 2 question: - create database temp:

CREATE TABLE Product (

ProductID INT PRIMARY KEY,

ProductName VARCHAR (100) NOT NULL, no items INT DEFAULI O, rate_per item INT,

total_price INI GENERATED ALWAYS AS (rate per_item * no items) STORED) :

  1. INSERT INTO Product (ProductID, ProductName, no items, rate_per item)

VALUES (1001,

'Prale G', 50, 10);

(1002,

'Product B', 20, 25),

(1003,

*Product_C'. 30, 35).

(1004,

"Product D',

(1005, Product E', 50, 55):

  1. :- select - from product where ProductID = * 1005*;

5) :- apdate produet set zate_per_iten = eo where ProduetiD i12003':

:- select ProductName, total price trom product wheze ProductID =-10011:

7)

:- delete from produet Where ProductID ="1004 :

  1. :- select ProductName from product:
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 159. Saniya Shaikh