check whether all the emp numbers are indeed unique.

Answer Posted / santhi kandasamy

In Oracle,

select empno from emp where empno is not null
group by empno
having count(*) >1;

if the above query does not return any rows then you can
consider, empno having unique values.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data types in sql?

529


What is the use of & in pl sql?

530


What is compute?

553


How do you concatenate in sql?

544


How can triggers be used for the table auditing?

588






What is function and procedure?

558


What is pragma in sql?

610


How do I start sql profiler?

547


Write a unique difference between a function and a stored procedure.

523


Explain the purpose of %type and %rowtype data types?

495


Which one is better sql or oracle?

491


What's the procedure?

481


what is the difference between primary key and unique key? : Sql dba

518


What is a crud api?

492


How many joins can you have in sql?

506