Select all rows in a group where within the group, one column has one specific value, and another column has another specific value on the next row
问题 I am new to SQL, so I’m not sure which approach is best for this kind of task: I have a table where groups of rows all relate to the same item, whose name appears in the first column. Other details appear in the other columns. I am trying to retrieve all rows for every group based on having the same value in the first column, where every time a certain value appears in one column, another value appears in a different column in the following row. | Fruit | Value1| Value2| ---------------------