6 Comments

    SELECT ProductID, ProductName, SupplierID, CategoryID, Unit, Price FROM Products where Price in (select max(price) from Products)
    Union
    SELECT ProductID, ProductName, SupplierID, CategoryID, Unit, Price FROM Products where Price in (select min(price) from Products);

    1. SELECT MAX(PRICE) AS MAX_PRICE, MIN(PRICE) AS MIN_PRICE FROM PRODUCTS;

    2. SELECT PRODUCTNAME,PRICE FROM PRODUCTS WHERE PRICE IN (SELECT MAX(PRICE) FROM PRODUCTS)UNION
    SELECT PRODUCTNAME,PRICE FROM PRODUCTS WHERE PRICE IN (SELECT MIN(PRICE) FROM PRODUCTS);

    select max(price) as costliest from products;
    UNION
    select min(price) as cheapest from products;

    select max(Price)from producst;
    union
    select min(price) from products;

    Select max (Price) from products ; union
    Select min (Price) from products;

    SELECT MAX(PRICE) as ‘costliest’, MIN(PRICE) as ‘cheapest’ FROM PRODUCTS;

Leave a Reply

Loading Questions

If you are facing any issue like can not see video so please login into Google with email what you forwarded to us Google Login or mail to administrator qatraining@infotek-solutions.com