Quantcast
Channel: Get rows having different values for a column based on the duplicate values of combination of other 3 columns - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

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 Article


Get 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>