check whether all the emp numbers are indeed unique.
Answer Posted / valli
select rowid from (
select emp_no, rownum() over (emp_no) as Rownum
from emp order_by emp_no,sal
) where rownum > 2
If this query returns no rows then we can say all the emp
numbers are indeed unique.
Regard,
Valli
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Why do we use partitions in sql?
What is a pl/sql block?
tell me about various levels of constraint. : Sql dba
what is an extent ? : Sql dba
What is mdf ldf and ndf?
write an sql query to find names of employee start with 'a'? : Sql dba
how are mysql timestamps seen to a user? : Sql dba
Is it possible to update views?
how can you see all indexes defined for a table? : Sql dba
Explain ddl statements in pl/sql?
Explian rowid, rownum? What are the psoducolumns we have?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
Mention what does plv msg allows you to do?
Explain the structure of pl/sql in brief.
What is a temporal table?