check whether all the emp numbers are indeed unique.

Answer Posted / nagendra

select empno, count(empno)
from emp
group by empno
having count(empno) > 1;

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1136


how to show all tables with 'mysql'? : Sql dba

600


What is the requirement of self-join?

538


describe transaction-safe table types in mysql : sql dba

501


What is the use of count (*) in sql?

540






How can we optimize a sql query?

571


Which query operators in sql is used for pattern matching?

540


What is cte sql?

514


How do I view a procedure in sql?

545


Explain 3 basic parts of a trigger.

830


What are transaction and its controls?

557


What is the difference between inner join and natural join?

507


What are the features of pl sql?

558


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

665


what are all the common sql function? : Sql dba

580