select cust_id,cust_name from customer where city="mumbai";
select * from book;
select name,address from sales; select * from book where publisher="bpb"; select cust_name,city from cust where amountdue=0; select distinct(publisher) from book; select distinct(city) from cust; select * from cust order by cust_name; select * from books order by book_name; delete from cust; delete from cust where city="delhi"; update book set price =575 where book_name="algorithm" and price=550; alter table book add isbn_no varchar(30); alter table book drop isbn_no; alter table book modify book_name varchar(200); truncate table customer; drop customer; rename table salesman to sales; alter table sales add telephone integer(10); alter table sales drop telephone; update customer set cust_id="c105" where city="bangalore"; update sales set city="pune" where sales_name="raman"; select distinct(sales_name) from sales; select * from cust_order; select book_name from book; select sales_name from sales where salesamount>15000; insert into sales_order values("o101","b104",4,6,300"); delete from sales_order where order_no="o101" and book_id="b104"; select cust_name from cust where cust_name like'_I%'; select cust_name from cust where city like'm%'; select cust_name from cust where city='noida' or city='delhi'; select cust_name from cust where amountdue>10000;; select * from cust_order where month(delivery_date)='6'; select * from from cust_order where cust_id in('c101','c101'); select book_id from book where sellprice>300 and sellprice<=650; select sellprice*0.15 as new_Price from book where sellprice>500; select cust_nam,city,state from cust where state='up'; select count(order_no) from cust_order; select avg(sellprice) from book; select max(sellprice) as max_price , min(sellprice) as min_price from book; select count(book_id) from book where costprice<=650; select * from sales_order,book where book.book_id=sales_order.book_id and sales_ order.quantity_displayed<sales_order.quantity_ordered; select order_no , day(order_date) from cust_order; select month(delivery_date) from cust_order; select date_format(order_date,'%d %b %y') from cust_order; select date_add(curdate(),interval 14 day) from sales; select sales_order.quantity_ordered,book.book_name from book,sales_order group b y sales_order.book_id; select avg(quantity_ordered) from cust,cust_order,sales_order where sales_order. order_no=cust_order.order_no and cust.cust_id=cust_order.cust_id group by cust_n ame having max(sales_order.price)=1000; select sum(price) from sales_order s, cust_order c where s.order_no=c.order_no a nd month(c.delivery_date)='june'; select b.book_id from sales_order s, book b,cust_order co,cust c where s.order_n o=co.order_no and c.cust_id=co.cust_id and s.book_id=b.book_id and c.cust_name=' sita'; select b.book_id,s.quantity_ordered from book b,sales_order s,cust_order c where b.book_id=s.book_id and s.order_no=c.order_no and month(delivery_date)='august' ;
select b.book_id,book_name from book b,sales_order s where b.book_id=s.book_id;
select book_name,quantity_ordered from book b,sales_order s,cust_order c where s .order_no=c.order_no and b.book_id=s.book_id and c.cust_id='c101' and c.cust_id= 'c104';
Variational Mode Decomposition and Decision Tree Based Detection and Classification of Power Quality Disturbances in Grid-Connected Distributed Generation System