Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

check whether all the emp numbers are indeed unique.

Answer Posted / santhi kandasamy

In Oracle,

select empno from emp where empno is not null
group by empno
having count(*) >1;

if the above query does not return any rows then you can
consider, empno having unique values.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you view the errors encountered in a trigger?

966


Are stored procedures faster than queries?

949


Does google use sql?

970


Where is sql database stored?

988


What are the rules to be applied to nulls whilst doing comparisons?

1326


What is difference between hql and sql?

1085


what are the disadvantages of mysql? : Sql dba

1149


What are the types of optimization?

963


What is pl sql in oracle?

1048


What is the purpose of primary key?

1031


What is an alias command?

1071


What are the different sql commands?

1078


Define join and name different types of joins?

1008


what is text? : Sql dba

1075


What is rank dense_rank and partition in sql?

1045