1. List all the employees who have atleast one person reporting to them List the employee details if and... 2. What is the data type of the column of Dual table? 3. what is a reverse key index and it's real time usage 4. What are the privileges that view does not have as compared to normal table? 5. How to see the existing constraints in a table? 6. how do you generate prime numbers in sql not in plsql 7. What is Local Index and Global Index in Partition Table?What is Prefix Index and Nonprefix Index in table?... 8. Update statement in SET clause subquery is allowed or not? 9. What is output of this SQL where current value of sequence is 3?Select seq.curval,seq.Nextval,seq.Nextval... 10. What is difference between Cartesian Join & Cross Join?

Showing Answers 1 - 3 of 3 Answers

amarnathtnl

  • Jun 29th, 2007
 

hi,
The answer for ur first Ques is

select * from emp where empno IN(select mgr,count(*) from emp group by mgr having count(*)>=1)


TO SEE THE EXISTING CONSTRAINTS ON the TABLE  emp


select * from user_constraints where table_name='EMP';

note : table name must be given in capitals

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions