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

Explain filtered indexes benefits?

1 Answers  


How to perfor If the table running time is taking 2hours and table is having 10 rows in it?

1 Answers  


What is indexing in sql server with example?

1 Answers  


What is the purpose of optimization?

1 Answers  


What is BLOCK statements in SQL?

1 Answers   HCL,


What is the default schema of your login session in ms sql server?

1 Answers  


What is the dbcc command and why is it used?

1 Answers  


What is sql server profiler?

1 Answers  


What is an inner join?

1 Answers  


what is sql injection in sql server?

2 Answers   TATA,


How do I create an extended event in sql server?

1 Answers  


What does the on update no action do?

1 Answers  


Categories