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

Who is the owner of mysql database?

549


What is difference between mysql and postgresql?

509


What is snowflake sql?

577


What are tuples in sql?

559


what are the authentication modes in sql server? How can it be changed? : Sql dba

699






Is keyword pl sql?

556


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

498


What is transaction control language (tcl)?

632


What is the main reason behind using an index?

548


Explain normalization and what are the advantages of it?

514


What are some emotional triggers?

568


What is interval partition?

540


What is embedded sql in db2?

503


When sql appeared?

615


what is a trigger in mysql? Define different types of trigger. : Sql dba

548