-->
Display customer details with balance between 100000 and 200000.
sql>select * from account,customer,ac where account.ano=ac.ano and customer.cno=ac.cno and balance=(select balance from account where balance=100000 and balance=200000);
Display customers having more than two accounts in Chinchwad branch.
sql>select cname,branchname from account,customer,ac group by cname,branchname haveing count(branchname)>=1 and branchname='chinchwad'
OR
sql>select cname,branchname from account,customer,ac where account.ano=ac.ano and customer.cno=ac.cno group by cname ,baranchname haveing count(cname)>2 and branchname='chichwad';
Delete account whose balance is below the balance <500.
......................no qury ----------
Select names of all Customers whose street name include the substring “road” and whose city is ‘Mumbai’.
sql>select instr(street,'road'),cname,street from customer where city='mumbai'group by street,cname;
Find number of depositor for each branch.
sql>select count(*),branchname from account,customer,ac where account.ano=ac.ano and customer.cno=ac.cno group by branchname ;
/