1) Count the total no. of orders.
select count(*) from sales_order ;
2) Calculate the average price of all the products.
select round(avg(sell_price))as "average price" from product_master ;
select min(sell_price)from product_master ;
select max(sell_price)"max_price",min(sell_price)"min_price"from product_master;
select count(*)from product_master where sell_price>=1500 ;
select product_no,description,qty_on_hand from product_master where qty_on_hand < recorder_lvl ;
select name|| ' has placed an order ' || s_order_no || ' on ' || s_order_date from client_master, sales_order where sales_order.client_no=client_master.client_no;
No comments:
Post a Comment