V
V
Vova2021-09-08 00:21:34
SQL
Vova, 2021-09-08 00:21:34

Show all values ​​where another value is count > 1?

Please help, I don’t even know how to correctly ask a question to Google

6137d70d9e9dd498051277.png

There is a table, I need to extract all call_id from it, where there is more than one value value
To roughly speaking it would be something like this

> call_id | value
> 22640 | 2
> 22694 | 2

I can describe it in words like this
: "Select a call_id where the number of value > 1 per call_id"
and exclude all values ​​where there is less than one repetition

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2021-09-08
@Lancerot

group by and count, condition - having

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question