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

Answers were Sorted based on User's Feedback



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

Answer / arshi

SELECT COUNT(CoumnName) AS Expr1
FROM Tablename
GROUP BY CoumnName
HAVING (COUNT(CoumnName) > 1)

Is This Answer Correct ?    8 Yes 0 No

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

Answer / karthik

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

Is This Answer Correct ?    1 Yes 0 No

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

Answer / vishu

by using count(colun name ) and differd calumn

Is This Answer Correct ?    0 Yes 1 No

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

Answer / navin.cp

SELECT COUNT(Column_Name) FROM Table_Name WHERE (Condition)
GROUP BY Column_Name

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL Server Interview Questions

Differentiate between a local and a global temporary table?

0 Answers  


Is it possible in sql table to have more than one foreign key?

0 Answers  


Explain the properties of sub-query in sql server?

0 Answers  


What are different types of raid configurations? : SQL Server Architecture

0 Answers  


what is differece between union and union all

6 Answers  


can you any body tell me suppose database is suspect mode. how can take to normal?

2 Answers   Teledata,


If there is failure during updation of certain rows, what will be the state?

2 Answers  


How to declare and use cursor variables?

0 Answers  


What are translations and its use? : sql server analysis services, ssas

0 Answers  


How do you trace the traffic hitting a sql server?

0 Answers  


Explain the different index configurations a table can have?

0 Answers  


What is a non equi join?

0 Answers  


Categories