Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Q1.all the depts which has more then 10 empls? Q2.all the
dept which does not have any emply? Q3 all the emp which
does not have any dept? Q4 get all the emply detais with
the dept details it dept is exit otherwise any emp details?
Q5 how to debugg the dynamic sql and packages?

Answer Posted / krish

1)select deptno,count(*)
from emp having count(*)=0 group by deptno;
2)select deptno,count(*)
from emp having count(*)>10 group by deptno;
3)select empname from emp where deptno is null;
4)select emp.deptno,emp.ename,dept.deptno,dept.dname
from emp,dept
where emp.deptno=dept.deptno(+);

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cluster and non-cluster index?

1114


What is a call statement? Explain with an example.

1022


Can we use update in sql function?

1071


Is t sql a programming language?

1074


What is the limitation on the block size of pl/sql?

1001


how can we find the number of rows in a table using mysql? : Sql dba

1096


can a stored procedure call itself or recursive stored procedure? : Sql dba

1040


How does pl sql work?

967


How to add, remove, modify users using sql?

1042


how does a local variable is defined using t-sql? : Transact sql

1029


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1152


How do you rename a table in sql?

1131


how to rename an existing column in a table? : Sql dba

1030


What are the two parts of design view?

1024


What is memory optimized?

1095