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
What is file based approach?
How do I view a procedure in sql?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
What is snowflake sql?
how to get @@error and @@rowcount at the same time? : Sql dba
how can we know the number of days between two given dates using mysql? : Sql dba
what is sql? : Sql dba
write an sql query to find names of employee start with 'a'? : Sql dba
What is transaction control language (tcl)?
What are the key differences between SQL and PL SQL?
What are synonyms in sql?
How to check if a column is nullable before setting to nullable?
What is sql table?
what is the difference between a web-garden and a web-farm? : Sql dba
what is “go” in t-sql? : Transact sql