-->
Display employee details who have invested more than 100000.
sql>select ename,address from emps,investment where emps.eid=investment.eid and amount>100000;
Display employee wise total investment amount.
sql>select ename,sum(amount) from emps,investment where emps.eid=investment.eid group by ename order by ename;
Display the employee names who invest on date 2nd Jan 2013.
sql>select ename from emps,investment where emps.eid=investment.eid and idate='2/1/2013';
Display employee whose investment are more than 3.
sql>select ename from emps,investment where emps.eid=investment.eid group by ename haveing count(investment.ino)>3;
Find average investment of employees of Pune.
sql>select avg(amount)from emps,investment where emps.eid=investment.eid and address='pune';
/