Skip to content
Advertisement

Get records greater than 1 for same status

I have table logs

Table 2 status_master

So, now I’m trying to get the retry count for each scenario. Expected result

Advertisement

Answer

Sounds like an aggregation of an aggregation to me. Try:

Results

status count
2 1
19 1

My results were different than your expected results. Did you mean for status = 1 to be status = 2 in your results?

See this db<>fiddle.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement