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


Please Help Members By Posting Answers For Below Questions

Why is a primary key important?

537


What is a common use of group by in sql?

586


Can sql developer connect to db2?

577


Which join condition can be specified using on clause?

508


how to create a test table in your mysql server? : Sql dba

486






What is sqlca in db2?

523


Why cross join is used?

622


what is log shipping? : Sql dba

602


how can we find the number of rows in a table using mysql? : Sql dba

575


What is rank function in sql?

522


Are dml statements autocommit?

544


What can you do with pl sql?

551


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1550


Can you select everything, but 1 or 2 fields, without writer's cramp?

491


How does postgresql compare to mysql?

571