[sql] Select rows with same id but different value in another column