D
D
Dmitry Mikhalev2020-07-14 21:37:40
SQL
Dmitry Mikhalev, 2020-07-14 21:37:40

Is the formula correct?

Good afternoon. Is the formula correct? I need a strict match by numbers and the formula does not output correctly?

select date , date_update , game_id , game , command1_score_current ,  command2_score_current , command1_avgrating , command2_avgrating , index_1 , index_2 , index_goal_1 from table_football3
where game_id in (
  select game_id from table_football3 FOR SYSTEM_TIME ALL
  where  index_goal_group = 0.5 and index_goal_1 >= 1.5 and (abs(command1_avgrating - command2_avgrating) >= 0.5)
  group by game_id)

data
5f0dfb0b4e309145464326.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur-Salo, 2020-07-17
@Artur-Salo

in a subquery you can try select distinct game_id
and removegroup by game_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question