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

what are tables and fields? : Sql dba

990


What are the types pl/sql code blocks?

1068


What is sql character function?

996


What are %type and %rowtype for?

1014


How to run sql statements with oracle sql developer?

1000


What is a left join?

890


how to use myisamchk to check or repair myisam tables? : Sql dba

913


Explian rowid, rownum? What are the psoducolumns we have?

945


Is primary key an index?

947


What is the use of sqldataadapter?

911


what are the differences between char and nchar? : Sql dba

1056


How many subqueries can be nested in a statement?

935


Which nosql database is best?

928


how to shut down the server with 'mysqladmin'? : Sql dba

957


What is program debugging?

1133