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
Explain what is dbms?
What are pl/sql cursor exceptions?
What are some emotional triggers?
What is the use of <> sql?
Does group by remove duplicates?
Can you join a table to itself?
What is a schema? How is it useful in sql servers?
Define commit, rollback and savepoint?
what are the different tables present in mysql? : Sql dba
How much does sql cost?
what is the difference between a having clause and a where clause? : Sql dba
how can we find the number of rows in a table using mysql? : Sql dba
How do I remove all records from a table?
What are different types of statements supported by sql?
Is join and inner join the same?