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
What is the difference between a subquery and a join?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
What is a relationship and what are they?
What are the differences between in and exists clause?
What are the types of views in sql?
How do you explain an index?
how can we know the number of days between two given dates using mysql? : Sql dba
What is pl sql architecture?
What are properties of the transaction?
What makes a good primary key?
What are some predefined exceptions in pl/sql?
What are the events on which a database trigger can be based?
What is record data type?
How to change sql*plus system settings?
what are the different type of sql's statements ? : Sql dba