Quantcast
Channel: Questions in topic: "distinct"
Viewing all articles
Browse latest Browse all 38

Select distinct rows based on a column that have all possible values,Select distinct records that have all possible values of a column

$
0
0
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)

Viewing all articles
Browse latest Browse all 38

Trending Articles