check whether all the emp numbers are indeed unique.

Answer Posted / eswar

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many indexes can be created on a table in sql?

489


What are the types of operators available in sql?

544


What is parallel hint?

739


what is normalization? : Sql dba

559


What are different methods to trace the pl/sql code?

532






How do you define a foreign key?

526


How would you reference column values before and after you have inserted and deleted triggers?

618


Explain commit, rollback and savepoint.

598


What is Materialized View? In What Scenario we Use Materialized View?

8504


How do I run sql profiler?

577


What is cold data?

498


Is json a nosql?

531


Do foreign keys improve performance?

538


Is sqlite thread safe?

596


How to return multiple rows from the stored procedure?

511