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

What is before and after trigger?

691


What are sql data types?

744


Why truncate is used in sql?

720


How many row comparison operators are used while working with a subquery?

754


What are the advantages of sql? Explain

850






What is t sql in sql server?

739


What is sqlcommand?

751


What is schema in sql example?

824


Do we need to rebuild index after truncate?

700


What is the difference between between and in condition operators?

724


What is sqlca in powerbuilder?

746


What are user defined functions?

759


what is subquery? : Sql dba

773


Why is sql important?

759


Where not exists in sql?

674