Aggregate the column by COUNT, then use a HAVING clause to find values that appear greater than one time.
SELECT column_name, COUNT(column_name)
FROM table_name
GROUP BY column_name
HAVING COUNT(column_name) > 1;
More Related Contents:
- The most efficient way to UPPER CASE two columns in a single query [closed]
- Current date in Oracle Db
- Merging two tables in SQL [closed]
- I want to search job and salary from employee table but I am getting error like invalid relational operator [closed]
- How do I do top 1 in Oracle? [duplicate]
- Case insensitive searching in Oracle
- Get value based on max of a different column grouped by another column [duplicate]
- Multiplication aggregate operator in SQL
- Pivoting rows into columns dynamically in Oracle
- MySQL equivalent of DECODE function in Oracle
- How do I select all the columns from a table, plus additional columns like ROWNUM?
- SQL error “ORA-01722: invalid number”
- Disable all table constraints in Oracle
- Get month name from date in Oracle
- ORA – 00933 confusion with inner join and “as”
- SQL Error: ORA-00942 table or view does not exist
- How to count the number of occurrences of a character in an Oracle varchar value?
- Comparing with date in Oracle sql
- Is it possible to query a comma separated column for a specific value?
- SQL selecting rows by most recent date with two unique columns
- How to extract group from regular expression in Oracle?
- How to return multiple rows from the stored procedure? (Oracle PL/SQL)
- How to extract week number in sql
- In Oracle, is it possible to INSERT or UPDATE a record through a view?
- How to handle optional parameters in SQL query?
- Return number from Oracle Select statement after parsing date
- How do you interpret a query’s explain plan?
- How to call Oracle MD5 hash function?
- SQL Server equivalent of WM_CONCAT function [duplicate]
- Oracle: ‘= ANY()’ vs. ‘IN ()’