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...

how to find out the repeated value from table using groupby
function?

Answer Posted / karthik

select eno,count(1) cnt from emp
group by eno having count(1) > 1;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get a list of columns using the "sp_help" stored procedure in ms sql server?

983


What is the primary use of the model database?

1018


What are magic tables in sql server?

1068


Explain about thread and memory management process of SQL?

923


What is co-related sub query?

975


When multiple after triggers are attached to sql table, how to control the order of execution?

977


What is difference statement and preparedstatement?

934


What is 2nf in normalization?

945


How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?

1053


What is ms sql server triggers?

943


Define Business Edition in SQL Azure?

100


Can we use where and having clause together?

978


What is deploy, process and build? : sql server analysis services, ssas

1034


What is the data type of time?

910


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

935