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 |
Do you know clustered and non-clustered index?
What is the name of the Database which IBM mainframe uses?
What purpose does the model database server?
Is it possible to create trigger on views?
what are the new features of sql server 2005?
8 Answers HP, Keane India Ltd,
Call by value and call by reference in procedure and function, with NOCOPY.
What are joins in sql and what are the different types of joins?
can a table be moved to different filegroup? : Sql server administration
What is data source document?
One table Test with single column. These are the values in the table a b c d e f g h I need a query (without using any variable) with output as - a b c d e f g h
what is new philosophy for database devises for sql server 7.0? : Sql server database administration
How to provide default values to function parameters?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)