↧
Answer by Julien Vavasseur for Get rows having different values for a column...
Using standard SQL on most RDBMS, there are various ways.Using a subquery:SELECT d.dept, d.role1, d.role2, DEFFROM data dINNER JOIN ( SELECT dept, role1, role2 FROM data GROUP BY dept, role1, role2...
View ArticleGet rows having different values for a column based on the duplicate values...
I want to get only rows having a different values in a column(column name DEF) based on the duplicate rows having unique combination of other 3 columns.Example: In the below example first two rows has...
View Article