how to find out the repeated value from table using groupby
function?
Answers were Sorted based on User's Feedback
Answer / arshi
SELECT COUNT(CoumnName) AS Expr1
FROM Tablename
GROUP BY CoumnName
HAVING (COUNT(CoumnName) > 1)
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / karthik
select eno,count(1) cnt from emp
group by eno having count(1) > 1;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / navin.cp
SELECT COUNT(Column_Name) FROM Table_Name WHERE (Condition)
GROUP BY Column_Name
Is This Answer Correct ? | 0 Yes | 3 No |
i want to join two queries....and i want to run them as one after another that is want output of first query then second , then again output of first query then second and so on...
What is right outer join in sql server joins?
what's the information that can be stored inside a bit column? : Sql server database administration
How do I make a resultset scrollable?
Explain the ways to controlling cursor behavior?
Is port 1433 secure?
How to recompile stored procedure at run time?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
Can binary strings be converted into numeric or float data types?
How many categories of data types used by sql server?
how to invoke a trigger on demand? : Sql server database administration
What is an indexed view?