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 count the number of duplicate items in a table?

Answers were Sorted based on User's Feedback



How to count the number of duplicate items in a table?..

Answer / mr.abdul rahim

select count(column), column from table group by column
having count(column) > 1

Is This Answer Correct ?    4 Yes 1 No

How to count the number of duplicate items in a table?..

Answer / pavan

Hi,
try this query.In this query sal one val is duplicated
4items


select sal,count(sal) from test group by sal having count
(*)>1

Is This Answer Correct ?    4 Yes 4 No

How to count the number of duplicate items in a table?..

Answer / lalit goyal

select count(*) from (select boss_ID,COUNT(boss_ID) as s from dbo.Employee group by boss_ID ) a where s>1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

explain different types of constraints? : Sql server database administration

0 Answers  


How to choose all records from the table?

0 Answers  


Can you force a query to use a specific index?

0 Answers  


How to maintain a fill factor in existing indexes?

0 Answers  


How are SQL Server databases physically stored under Windows 2000?

1 Answers  


How can I create a table from another table without copying any values from the old table?

3 Answers  


Explain about SQL server 2005?

0 Answers  


Can we have more than one NULL in a column having unique constraint?

12 Answers   247Customer,


what is denormalization? : Sql server database administration

0 Answers  


What is raiseerror? What is raiseerror?

0 Answers  


What is the cpu pressure?

0 Answers  


Where in ms sql server is ’100’ equal to ‘0’?

0 Answers  


Categories