You can use a grouping across the columns of interest to work out if there are duplicates.
SELECT
artist, release_id, count(*) no_of_records
FROM table
GROUP BY artist, release_id
HAVING count(*) > 1;
More Related Contents:
- Should I use the datetime or timestamp data type in MySQL?
- Delete all Duplicate Rows except for One in MySQL? [duplicate]
- MySQL string replace
- What is the difference between utf8mb4 and utf8 charsets in MySQL?
- MySQL – Trigger for updating same table after insert
- How do I get the current time zone of MySQL?
- What’s faster, SELECT DISTINCT or GROUP BY in MySQL?
- MySQL select one column DISTINCT, with corresponding other columns
- How to get the difference in years from two different dates?
- Mysql Convert Column to row (Pivot table )
- MySQL grant all privileges to database except one table
- Writing optional parameters within stored procedures in MySQL? [duplicate]
- How to get all columns’ names for all the tables in MySQL?
- How do I get MySQL to use an INDEX for view query?
- Can I resolve this with pure mysql? (joining on ‘;’ separated values in a column)
- Restore the mysql database from .frm files
- Mysql insert random datetime in a given datetime range
- Greatest value of multiple columns with column name?
- insert data from one table to another in mysql
- MySQL UPDATE syntax with multiple tables using WHERE clause
- How does MySQL Auto Increment work?
- MySQL load data infile – acceleration?
- mysql – Dynamic column alias
- How to close sqlalchemy connection in MySQL
- How do I lock on an InnoDB row that doesn’t exist yet?
- MySQL Fulltext Search Score Explained
- Multi-Column Primary Key in MySQL 5
- Should I always prefer MySQL InnoDB over MyISAM?
- MySQL add 12 hours to a time field
- mySQL regex in the where clause