Hi, I m trying to select distinct these rows that have all possible values of a given column. Please check the example bellow.
- ID_REC ID_COMMAND ID_STORE
- 1 100 1
- 2 110 1
- 3 120 1
- 4 100 2
- 5 110 2
Given that ID_STORE column has values 1 and 2, I want to select distinct these rows that have ID_STORE 1 and 2. In this example I want output like
- ID_COMMAND
- 100
- 110
Any idea?
(sorry for my bad english)
↧