You are on page 1of 1

)

1. Display all product


SELECT * FROM product;

2. Display all suppliers of Flash Drive


SELECT supplier_name FROM product WHERE prod_name="Flash Drive";

3. Display the product name, supplier name, and price of all products
SELECT prod_name,supplier_name,price FROM product;

4. Display all products that are below the reorder point


SELECT * FROM product WHERE in_stock<reorder_point;

5. Display all products whose price ranges from $1,000.00 to $3,000.00


SELECT * FROM products WHERE price BETWEEN '1000' AND '3000';

6. Display all products being supplied by Razer and Sandisk in Ascending order of
product name.
SELECT * FROM product WHERE supplier_name='Razer' OR
supplier_name='Sandisk' ORDER BY prod_name ASC;

7. Display only the product name, and price of all products whose names contains a
letter "s" and currently within or above the reorder point.
SELECT prod_name, price FROM product WHERE prod_name LIKE '%s%' AND
in_stock >= reorder_point;

Add a new batch (stock-in) of items as follows:

8. 20 pcs. Sandisk Flash Drive.


UPDATE product SET in_stock = in_stock+20 WHERE prod_name='Flash Drive' AND
supplier_name='Sandisk';

9. 20 pcs. Desktop Speaker supplied by Altec whose price is $2,250.00 with a reorder
point of 10 .
INSERT INTO product (prod_name,supplier_name,in_stock,price,reorder_point)
VALUES ("Desktop Speaker","Altec",'20','2250.00','10');

Remove the following from the table:

10. All products whose quantity is below the reorder point


DELETE FROM product WHERE in_stock<reorder_point;

11. All products whose names ends with letter "d"


DELETE FROM product WHERE prod_name LIKE '%d';

You might also like